Instance Property

collectionViewContentSize

Returns the width and height of the collection view’s contents.

Declaration

@property(nonatomic, readonly) CGSize collectionViewContentSize;

Return Value

The width and height of the collection view’s contents.

Discussion

Subclasses must override this method and use it to return the width and height of the collection view’s content. These values represent the width and height of all the content, not just the content that is currently visible. The collection view uses this information to configure its own content size for scrolling purposes.

The default implementation of this method returns CGSizeZero.

See Also

Getting the Collection View Information

collectionView

The collection view object currently using this layout object.