-(void)scrollViewDidEndZooming: not called

Discussion in 'iOS Programming' started by larswik, Dec 30, 2013.

  1. larswik macrumors 68000

    Joined:
    Sep 8, 2006
    #1
    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
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky

Share This Page