I am using a UIScrollView to add multiple pages. It is all working fine and the scrolling works, but only if the user scrolls by putting their finger on a subview of the scrollView. This means that if a page has no subviews for instance, it is impossible for the user to scroll, and if the page only has one subview, the user has to put their finger on that subview to scroll. Is there any way I can make it so that the user can scroll by placing their finger anywhere in the scrollView without creating a background UIView for the scrollView. Thanks.
Edit: This is the code I'm using:
%hook CCUIScrollView
-(void)layoutSubviews
{
%orig;
[ccView setContentSize:CGSizeMake(pageWidth * 2, pageHeight)];
[ccView setShowsHorizontalScrollIndicator:NO];
[ccView setShowsVerticalScrollIndicator:NO];
[ccView setPagingEnabled:YES];
}
%end