iOS Developer Library

Developer

iOS 7 Design Resources UIKit User Interface Catalog

Download PDF

Collection View

Collection View Attributes Inspector Reference

image: ../Art/uicollectionview_attributes_inspector.pdf

Layout, Scrolling, Header, and Footer

Layout

The layout to use to lay out the collection view content.

Access: collectionViewLayout

Selection

Flow

Custom

Layout: Flow

image: ../Art/uicollectionview_attributes_inspector_subgroup-layout_flow.pdf

Scroll Direction

The direction along which the collection view scrolls.

Access: collection_view.collectionViewLayout.scrollDirection

Accessories

Section Header

Whether the collection view has a header.

Access: collection_view.collectionViewLayout.headerReferenceSize headerReferenceSize.

Selection

Code

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

collection_view.collectionViewLayout.headerReferenceSize = 0.0

image: ../Art/user_interface_checkbox-selected.pdf Selected

collection_view.collectionViewLayout.headerReferenceSize = // Floating-point value greater than 0.0

Section Footer

Whether the collection view has a footer.

Access: collection_view.collectionViewLayout.footerReferenceSize footerReferenceSize.

Selection

Code

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

collection_view.collectionViewLayout.footerReferenceSize = 0.0

image: ../Art/user_interface_checkbox-selected.pdf Selected

collection_view.collectionViewLayout.footerReferenceSize = // Floating-point value greater than 0.0

Layout: Custom

image: ../Art/uicollectionview_attributes_inspector_subgroup-layout_custom.pdf

Class

The class of the layout to use to lay out the collection view content.