Summary
In this chapter, you created a new custom UIControl
subclass, RatingsView
, from scratch and added it to the Restaurant Detail and Review Form screens. You configured it to respond to touches so that a user can set a restaurant rating in the Review Form screen. Finally, you implemented the ReviewFormViewController
class, a view controller for the Review Form screen, and configured the Cancel and Save button actions so that the user can dismiss the Review Form screen or submit a review.
You now have a good grasp of how to create custom UIControl
classes, how to make them respond to user interaction, and how to implement a review form that can accept user input. This will be useful when you write your own apps.
In the next chapter, you’ll learn how to work with photos from the camera or Photo Library, as well as how to apply photo filters to the photos that you have.