Reputation: 535
Im developing an iPad application and in my app, Im using an outer scroll view and an inner scroll view. Outer scroll view is used for vertical scrolling and the inner one is used for horizontal scrolling. I have several of those inner scroll views as well.
What I need to do is to separate the vertical scrolling and the horizontal scrolling where wen the user scrolls vertically only the outer scroll view responds and when the user scrolls horizontally the inner scroll view responds.
Now whats happening is wen the user put his/her finger on one of the inner scroll views and try to scroll vertically it doesnt scroll properly...
Upvotes: 3
Views: 2029
Reputation: 4946
First of all,
take this problem in 3 steps,
_scrollview.showsHorizontalScrollIndicator
= NO;
2.Enable only Horizontal scrolling for inner scroll view and use
_scrollview.showsVerticalScrollIndicator
= NO;
3.Use a swipe gesture,
Use a swipe gesture with direction top and bottom and add that gesture to the outer scroll view.
use a swipe gesture with direction left and right and add that gesture to the inner scroll view.
Upvotes: 5