tags:

views:

115

answers:

4

I have a UIImageView object, attached to a controller. It displays fine. What is a easy way to get zooming and panning with the least amount of code? Perhaps some library out there that does this? Hard to believe the SDK does not provide anything.

+1  A: 

UIScrollView is the SDK class you're looking for

Phil Nash
+2  A: 

Add your UIImageView as a subview of a UIScrollView and make sure you change the minimumZoomScale or maximumZoomScale.

Also take a look at the documentation for UIScrollView there might be other settings you want to tweak.

klaaspieter
A: 

The Three20 project has a photo viewer you may want to look into, that I believe supports zooming and panning in a larger image.

Kendall Helmstetter Gelner