views:

310

answers:

2

I have a UIScrollFrame that contains multiple UIImageViews.

What is the correct way of supporting zoom in such a control?

Which view should 'viewForZoomingInScrollView' return?

A: 

Apple has a really nice piece of Sample Code that is all about UIScrollView and zooming and tiling. Check it out at

http://developer.apple.com/iphone/library/samplecode/ScrollViewSuite/index.html

This code is discussed in the Scoll Views session of WWDC2009. The video of that session is unfortunately not freely available, but you can buy it as part of the iPhone WWDC2009 video package.

St3fan
Thank - will have a look at it. Missed it earlier as this was the only example from the documentation where the download didn't work...
Jean
A: 

I finally implemented it by putting a scrollview within a scrollview. This way, the inner view handles page swipes while the outer handles zoom.

Jean