Created
October 28, 2014 05:56
-
-
Save bimawa/f4e63b06f9cff37ba47c to your computer and use it in GitHub Desktop.
This method block size request for cells for ios8 and pass for less or eqal ios7.1 Needs for autolayouts cells for iOS8
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
- (BOOL)respondsToSelector:(SEL)aSelector | |
{ | |
static BOOL useSelector; | |
static dispatch_once_t predicate = 0; | |
dispatch_once(&predicate, ^{ | |
useSelector = SYSTEM_VERSION_LESS_THAN(@"8.0"); | |
}); | |
if (aSelector == @selector(tableView:heightForRowAtIndexPath:)) | |
{ | |
return useSelector; | |
} | |
return [super respondsToSelector:aSelector]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment