Displaying data in a collection view

You've implemented a data manager class, ExploreDataManager, that reads cuisine data from a .plist file and stores it in an array of ExploreItem instances. Now, you will use that array as the data source for the collection view in the Explore screen.

At present, the collection view in the Explore screen displays 20 collection view cells, with each cell containing an empty image view and a label. You need a way to set the values for the image view and the label in the cells, so you will create a view controller, ExploreCell, for this purpose. Then, you can configure the view controller for the collection view, ExploreViewController, to get cuisine details from ExploreDataManager and provide it to the collection ...

Get iOS 13 Programming for Beginners - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.