Scrolling Through Content

This section shows you some of the most advanced features of UIScrollView. You add a new scene for paging through a set of zoomable car images. Paging means you scroll by units of content instead of smoothly through the content. In this case, each scroll gesture to the left or right moves by one car. To make this work, you do the following:

Image Create a new view controller class for viewing car images.

Image Add a new scene with a scroll view using the new class.

Populate the scroll view with car images.

Set up the scroll view ...

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.