Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
The Delegate is not calling the
Code:
 -(void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale method?
I do have a delegate method that is being called like this and it works.

Code:
- (void)scrollViewDidZoom:(UIScrollView *)scrollView{
    NSLog(@"IS Zooming %f",[self.scrollView zoomScale]);
}

I set up my scrollview for zooming

Code:
- (void)viewDidLoad
{
    [super viewDidLoad];
    [self.scrollView setContentSize:[self getImageDimmensions]];//CGSizeMake(self.view.frame.size.width + pages, self.view.frame.size.height)];
    [self.scrollView addSubview:menuView];
    [self.scrollView setMaximumZoomScale:6.0];
    [self.scrollView setMaximumZoomScale:0.70];
    [self.scrollView setZoomScale:6.0 animated:YES];
    self. scrollView.delegate = self;
    [self.scrollView setClipsToBounds:YES];
    
}

my over all goal is to pinch zoom and to have it stay at the new zoom value without snapping back.

Any idea as to why it is not calling this delegate method?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.