Klose
Klose

Reputation: 158

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,

BrightRaj

Upvotes: 0

Views: 1134

Answers (4)

ipraba
ipraba

Reputation: 16543

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.

Upvotes: 2

KingofBliss
KingofBliss

Reputation: 15115

Place your image over UIScrollView..

Handle the zoom function using the delegate

– zoomToRect: animated:

Upvotes: 0

BastiBen
BastiBen

Reputation: 19860

What you are looking for is UIScrollView.

Upvotes: 0

Related Questions