• 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
Zooming UIScrollViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zooming UIScrollViews


  • Subject: Zooming UIScrollViews
  • From: Development <email@hidden>
  • Date: Tue, 1 Jun 2010 11:11:55 -0700

Ok I have a UIScrollView and I am using a pinch gesture to zoome it, or at least I'm trying too. Basically when I attempt to zoom absolutely nothing happens.

the view never gets bigger or smaller it does nothing really.  All the numbers are passing correctly according to NSLog but I get no zoom at all.


- (void)scrollViewDidEndZooming:(UIScrollView *)sv withView:(UIView *)view atScale:(float)scale {
    [scrollView setZoomScale:scale animated:NO];

}
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)sv {
    return docView;
}


-(void)setNewZoom:(float)scale fromPoint:(CGPoint)point
{
	CGRect zoomRect = [self zoomRectForScale:scale withCenter:point];
    [scrollView zoomToRect:zoomRect animated:YES];
}_______________________________________________

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

  • Follow-Ups:
    • Re: Zooming UIScrollViews
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: App will not launch
  • Next by Date: Re: I need float resolution bitmap data from a JPG using CIImage or similar helper
  • Previous by thread: Re: nibs don't know about protocols?
  • Next by thread: Re: Zooming UIScrollViews
  • Index(es):
    • Date
    • Thread