Summary
In this chapter, you added a property list file, ExploreData.plist
, to your project. You implemented the ExploreItem
structure, the model objects for the Explore screen. You created a data manager class, ExploreDataManager
, to read data from ExploreData.plist
, put the data into an array of ExploreItem
instances, and provide it to ExploreViewController
. You created a class for the exploreCell
collection view cell. Finally, you configured the data source methods in the ExploreViewController
class to use data from the array of ExploreItem
instances to populate the collection view, and the Explore screen now displays a list of cuisines. Great job!
You now know how to provide data to an app using .plist
files, create model objects, create data manager classes that load .plist
files into model objects, configure collection views to display data that has been loaded, and configure view controllers for collection views. This will be useful should you wish to create your own apps...