Adding Zoom

Zooming is useful for helping the car valet see a license plate number or confirm that a particular scratch was already on a car. To enable a UIScrollView to zoom requires four main changes:

Image Adopting the UIScrollViewDelegate protocol in the car image view controller

Image Implementing the viewForZoomingInScrollView: protocol method

Image Connecting the scroll view delegate to the view controller

Specifying a maximum zoom level greater than 1.0 ...

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.