Skip to content

Instantly share code, notes, and snippets.

@PimCoumans
Created January 21, 2014 16:30
Show Gist options
  • Save PimCoumans/8543312 to your computer and use it in GitHub Desktop.
Save PimCoumans/8543312 to your computer and use it in GitHub Desktop.
Prevent UIScrollView from logging "Stop offset can not be modified for paging scroll views"
- (BOOL)respondsToSelector:(SEL)aSelector
{
if (aSelector == @selector(scrollViewWillEndDragging:withVelocity:targetContentOffset:))
{
return (!self.scrollView.pagingEnabled);
}
return [super respondsToSelector:aSelector];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment