Summary

In this chapter, you have explored many parts of UIScrollView, from a simple bounce to scrolling and zooming.

You started by retrofitting the view/add screen and enabling a bounce to show the user that what shows on the screen is all there is (is the complete content view.) After retrofitting the edit view, you used the scroll view to give access to all the edit fields, even when the available screen area is too small for all of them. Finally, you used a new view controller to explore paging and zooming content.

Along the way, you found out how to enable and disable buttons, resize scroll views and their content area when the screen rotates, and figure out which item is shown as a user scrolls.

Now you can add a scroll view to your design ...

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.