I've got some problem when i'm zooming, when i zoom the next UIImageView goes above the UIImageView i m zooming in.
I load my UIImageView in a subclass of a UIScrollView that i call in controller. The load function and Scroll function work perfectly.
The first problem is that when I zoom in the next UIImageView goes above the one that i m zooming in.
So i tried to put every UIImageView in a UIView that i put into the ScrollView but it does the same things...
The 2nd problem that I have is that when i zoom in, my scroll doesn't work anymore.
- (UIView*)viewForZoomingInScrollView:(UIScrollView *)scrollView {
// Return the view that you want to zoom
NSLog(@"viewForZoomingInScrollView - current : %d",self.scrollPageControl.currentPage);
return [[[[self.productImageScrollView subviews]objectAtIndex:0] subviews]objectAtIndex:self.scrollPageControl.currentPage];
//return [[self.productImageScrollView subviews] objectAtIndex:0];
//return [self.productImageScrollView getSubViewsByPage:[NSNumber numberWithInteger:[self.scrollPageControl currentPage]]];
The first return return a UIImageView of the UIView The second return the UIView the third return the UIImageView when i don't use the UIView.
I saw a lot of similar problem but nothing i tried helped me ... So I m calling you ! Ty ask me if i'm not clear.