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.
+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
2009-10-05 19:19:53
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
2009-10-06 05:16:09
A:
Here is a nice post
http://blog.timeister.com/2009/09/02/objective-c-zoom-image/
Adrian Pirvulescu
2009-10-06 05:29:08