6. Scrolling

Sometimes you need to present more content than fits on the screen. You have already seen this on the car edit screen. When the keyboard is open, especially in landscape, you cannot show all the text edit fields. What you want is a virtual window onto larger content—a window the user can manipulate to show what he or she wants to see.

UIScrollView lets you do all that and more. In this chapter, you learn about and practice using the power of this versatile view. First, you learn the simple math behind scrolling and zooming and how easy it is to access. Then, you integrate a scroll view and change a single setting to add some bounce to your app. You delve deeper into scroll views by enabling scrolling to edit fields the user cannot ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.