• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS: Adding pinch-zoom to UIImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS: Adding pinch-zoom to UIImageView


  • Subject: Re: iOS: Adding pinch-zoom to UIImageView
  • From: Jon Sigman <email@hidden>
  • Date: Tue, 17 Jan 2012 11:45:51 -0800 (PST)

Yep, specifying a delegate and implementing -viewForZoomingInScrollView: did the trick! (As a newb, I thought this functionality was innate in UIImageView, but...)

Thanks to everyone for your help!



________________________________
 From: Julius Oklamcak <email@hidden>
To: 'Jon Sigman' <email@hidden>
Cc: 'Cocoa- Dev List' <email@hidden>
Sent: Tuesday, January 17, 2012 11:37 AM
Subject: RE: iOS: Adding pinch-zoom to UIImageView

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

References: 
 >iOS: Adding pinch-zoom to UIImageView (From: Jon Sigman <email@hidden>)
 >Re: iOS: Adding pinch-zoom to UIImageView (From: Fritz Anderson <email@hidden>)
 >Re: iOS: Adding pinch-zoom to UIImageView (From: Jon Sigman <email@hidden>)
 >Re: iOS: Adding pinch-zoom to UIImageView (From: "Eric E. Dolecki" <email@hidden>)
 >Re: iOS: Adding pinch-zoom to UIImageView (From: Jon Sigman <email@hidden>)
 >RE: iOS: Adding pinch-zoom to UIImageView (From: Julius Oklamcak <email@hidden>)

  • Prev by Date: RE: iOS: Adding pinch-zoom to UIImageView
  • Next by Date: Re: music.read-only sandbox entitlement doesn't seem to work
  • Previous by thread: RE: iOS: Adding pinch-zoom to UIImageView
  • Next by thread: willPresentError being called with NSDocumentErrorRecoveryAttempter object
  • Index(es):
    • Date
    • Thread