Hi to all, i started a project where i need to show more images and allow a zoom on it.
In order to add more images to my view i used 2 scrollView: myScrollViewInt and myScrollViewExt. (myScrollViewInt subview of myScrollViewExt).
I added images to internal scrollview. All work as expected, the problem is when i tried to change page with a button.
Example of the code to go in page 2 (portrait):
Code:
-(IBAction) goToPageTwoPortrait{
CGRect rectWillSee = CGRectMake(768, 0, 768, 1024);
[myScrollViewInt scrollRectToVisible:rectWillSee animated:YES];
//[myScrollViewInt setContentOffset:CGPointMake(768, 0) animated:YES]; //SAME ISSUE using it
}
some variables are hard coded, however my images are 768*1024.
Now what happen?
1) start project
2) zoom in with pinch
3) click button to go page 2
4) vertical pan not work anymore! just horizontal pan of the images!.
1) start project
2) click button to go page 2
3) zoom in with pinch
4) vertical pan work as expected.
it is a really strange problem that not allow me to use a function "go to page" normally. I'm fighting with it at least since 1 full day

.
Can anyone help me? i seen and tried with all apple example of scrollview, but none of it use multiple images + zoom.
Thanks!.