开发者

iPhone sdk Zoom in/out

I'm trying to create a app having zoom in/out on image .So anyone say the delegates for zoom.

Thanks in advance,

BrightR开发者_StackOverflowaj


First Create a ScrollView Then Set the maximumZoomScale and minimumZoomScale. Then return the image by using this delegate

-viewForZoomingInScrollView:

And then use this method

-scrollViewDidEndZooming:withView:atScale:

to do what action you want when zooming.


What you are looking for is UIScrollView.


Place your image over UIScrollView..

Handle the zoom function using the delegate

– zoomToRect: animated:


See zoomin and zoomout of pdf file

http://developer.apple.com/library/ios/#samplecode/ZoomingPDFViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010281-Intro-DontLinkElementID_2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜