1
votes

I have a scroll view which has paging enabled.Its horizontal scrolling so when user scrolled from first page it would land the user in second page and second page has one slider.when the user slides(not touches) on this slider it automatically scrolls to first page because its horizontal scrolling too.Unless its touch on slider user end up in going to first page though user not intended to go to first page.

3

3 Answers

1
votes

I had the same kind of problem once but with another control. Take a look ate this answer to see if it canhelp you :

iPhone - UIScrollView and UIDatePicker scrolling conflict : the one interfer with the second

0
votes

Does the second view on the scrollView contains any other container like WebView or imageView etc.

If you are showing your data directly on the ScrollView (i.e on second page).I recommend that to add a one more view on your scrollView on second view and render your data on that view the you wil be able to use the main ScrollView and the second view scroll separately.

0
votes

You could try adding actions for UIControlEventTouchDown, UIControlEventTouchUpInside and UIControlEventTouchUpOutside to your slider. On touch down, do myScrollView.scrollEnabled = NO; and restore scrolling on touch up.