Created
May 3, 2015 14:06
-
-
Save thedoritos/27b5659a92cc09549427 to your computer and use it in GitHub Desktop.
UITableView with strong scroll
This file contains hidden or 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
// | |
// UITableView+StrongScroll.h | |
// | |
// Created by thedoritos. | |
// Prevents the scroll on table view from being stolen | |
// by UIButtons on UITableViewCells. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UITableView (StrongScroll) | |
@end | |
@implementation UITableView (StrongScroll) | |
- (BOOL)touchesShouldCancelInContentView:(UIView *)view | |
{ | |
return YES; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment