Pinch to Zoom, why it tricky


Ok, so the whole work of pinch to zoom is not hard, the point that no one mentioned is that we have 2 views, thats why we have scroll in the first place, the method

-(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
    return self.hypnosisView;

will return the first view that you load when you start your application, but we have another view thats on the right of that view, how can i tell that method to return the view i am currently using? so that it zooms in without making graphics glitches and bugs? Please i need an answer to this.


No answer?:frowning: