I\'ve been unable to find an answer for this (maybe someone has hacked a solution together).
Is it possible to disable scrolling in a UIScrollView in one direction?
The above solutions will reset you to zero,zero if the user accidentally scrolls vertically. Try this...
- (void)scrollViewDidScroll:(UIScrollView *) scrollView { if (scrollView.contentOffset.y > 0) { [scrollView setContentOffset:CGPointMake(scrollView.contentOffset.x, 0)]; } }