Chapter 8. Keyboard notifications, animation, and scrolling
This chapter covers
- Getting notifications of system events
- Dismissing the keyboard
- Animating views
- Implementing scrolling
In this chapter, you’ll solve a real-world problem: what do you do when the user taps on an editable text field and the keyboard pops up over the text field, obscuring from view what the user’s typing? How can you recognize when the user taps on the text field and move it so that the user can see what they’re typing?
Along the way, we’ll encounter several important iOS concepts:
- First responders— The first responder is the first view in a scene to receive system events.
- Notifications— Use notifications to listen to messages being broadcast from elsewhere ...