guys! I have a UIScrollView (Main Scroll view) which I would like to be scrolled only vertically. Inside it I have another UIScrollView (child scroll view) which should scroll only horizontally. In the child Scroll View I have two views. Here is a picture to illustrate that. My problem is that the child scroll view doesn't scroll horizontally.
I use Auto layout but also tried with:
[self.innerScrollView setDelegate:self];
[self.innerScrollView setScrollEnabled:YES];
self.innerScrollView.pagingEnabled = YES;
self.innerScrollView.contentSize = CGSizeMake(640, 300);
I also tried with subclassing both scroll view's from UIScrollView and using:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
shouldRecognizeSimultaneouslyWithGestureRecognizer: (UIGestureRecognizer *)otherGestureRecognizer
{
return YES;
}
I'm a bit clueless at this point, so any input would be greatly appreciated.