Zooming UIScrollViews
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