RE: iOS: Adding pinch-zoom to UIImageView
RE: iOS: Adding pinch-zoom to UIImageView
- Subject: RE: iOS: Adding pinch-zoom to UIImageView
- From: Julius Oklamcak <email@hidden>
- Date: Tue, 17 Jan 2012 14:37:57 -0500
You need to implement the -viewForZoomingInScrollView: UIScrollViewDelegate
method and return the image view.
Please have a look at Apple's ScrollViewSuite sample code:
http://developer.apple.com/library/ios/#samplecode/ScrollViewSuite/Introduct
ion/Intro.html
> I just added this:
> [scrollView setContentSize:CGSizeMake(128.0,96.0)];
> Now I can move the image about within the UIScrollView, but I can't
pinch/zoom it.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden