Instance Property


A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content.


@property BOOL backgroundViewScrollsWithContent;


The default value of this property is NO, which means that backgroundView (if it exists) fills the collection view's visible area and remains stationary when the collection view's content is scrolled. When the value of this property is YES, backgroundView matches the collection view's frame and scrolls with the collection view's items and other content.

Changing the value of this property also changes the background view’s parent. When backgroundView floats behind the scrolling content, it is a sibling of the collection view’s clip view. When it scrolls with the collection view’s content, it is a subview of the collection view.

See Also

Configuring the Collection View


The collection view’s delegate object.


A set of methods that you use to manage the behavior of a collection view.


An array that provides data for the collection view.


The background view placed behind all items and supplementary views.


An array containing the collection view’s background colors.