Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. Saving, Editing, and Sorting Data: Ev... > The keyboard changes the visible are...

The keyboard changes the visible area

The problem is that the keyboard changes the visible area but the scroll view has no idea that just happened. The scroll view still thinks it has the whole screen to display its content, and from its perspective, that’s plenty of room. We need to tell the scroll view that the visible area is smaller now that the keyboard is there.

image with no caption

Relax

iOS tells you about the keyboard, but doesn’t tinker with your views.

Just because iOS knows that the keyboard is there, it doesn’t know how your app wants to handle it. That’s up to you!

image with no caption

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial