Summary

In this chapter, you added a .plist file, ExploreData.plist, to your project. You implemented ExploreItem, the model objects for the Explore screen. You created a data manager, ExploreDataManager, to read data from ExploreData.plist, put the data into an array of ExploreItem instances, and provide it to ExploreViewController.

Finally, you created a view controller for exploreCell and configured the data source methods in ExploreViewController to set the values to be displayed by exploreCell in the collection view for the Explore screen. The Explore screen now displays a list of cuisines. Great job!

You should 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 objectsconfigure 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 that use collection views.

In the next chapter, you will look at table views, which are similar in some ways to collection views, and configure the Locations screen display a list of locations in a table view when you tap the LOCATION button in the Locations screen.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.229.113