Skip to content

Instantly share code, notes, and snippets.

@mattyohe
Created December 8, 2014 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattyohe/1755ae10470ee215bb30 to your computer and use it in GitHub Desktop.
Save mattyohe/1755ae10470ee215bb30 to your computer and use it in GitHub Desktop.
UIScrollView UIButton allow scrolling
- (BOOL)touchesShouldCancelInContentView:(UIView *)view
{
if ( [view isKindOfClass:[UIButton class]] ) {
return YES;
}
return [super touchesShouldCancelInContentView:view];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment