Changes

Jump to: navigation, search

An iOS 7 Storyboard-based Collection View Tutorial

53 bytes added, 14:19, 28 March 2018
no edit summary
== Implementing the Data Source ==
As outlined in the chapter entitled [[An Overview of iOS 7 Collection View and Flow Layout|An Overview of iOS Collection View and Flow Layout]], a collection view needs a data source and a delegate in order to provide all the functionality it is capable of providing. By default, Xcode has designated the MyCollectionViewController class as both the delegate and data source for the UICollectionView in the user interface. To verify this, select the black background of the collection view controller in the storyboard to select the UICollectionView subclass instance and display the Connections Inspector (select the far right item at the top of the Utilities panel or use the View -> Utilities -> Show Connection Inspector menu option). Assuming that the connections have been made, the Outlets section of the panel will be configured as shown in Figure 71-5.

Navigation menu