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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.