Last active
August 29, 2015 14:09
-
-
Save remirobert/e37db2f550bd2d32534e to your computer and use it in GitHub Desktop.
UIButton event in UIScrollView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//override | |
- (BOOL)touchesShouldCancelInContentView:(UIView *)view { | |
return ([view isKindOfClass:[UIButton class]]); | |
} | |
//init | |
self.selectedPhotosView.canCancelContentTouches = YES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment