views:

273

answers:

1
+1  Q: 

UIScrollView

Hi All,

I am using UIScrollView for zooming an image. While to zoom out the image i want it to be put on double tap.

So my question is can it be possible to zoom out zoomed image on double tap. (i am able to detect the double tap on zoomed view).

Which property we can use for this of Scroll View.

Thanks in advance.

Regards, Vishal

+1  A: 

You probably want to use the UIScrollView method scrollRectToVisible:animated:. You'll pass it the CGRect that is the frame of the image contained within the scrollview. This will scroll (zoom) the entire image to be visible within the scrollview.

Tim