Hi all, I have a slight problem, I have a scrollview with zooming enabled, but when I zoom, I can pan a much larger distance to the right and bottom then I should do, Here is my scrollViewDidEndZooming delegate method, I am updating the contentsize to allow panning, but it seems that this isn't the correct way to do it:
Code:
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale {
scrollView.contentSize = CGSizeMake(320 *scale, 1500 *scale);
}
So when I zoom at any scale above 1, i can pann at least 200 pixels more then I should be allowed to see on the right.
If I log the result of 320 *scale with scale of 2.0, I do get 640, but on screen, it's almost 1000 pixels