Created
July 29, 2014 09:25
-
-
Save dopcn/e96f8d48f36605bac68e to your computer and use it in GitHub Desktop.
NSLog all headers
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
NSString *className = NSStringFromClass([UIView class]); | |
const char *cClassName = [className UTF8String]; | |
id theClass = objc_getClass(cClassName); | |
unsigned int outCount; | |
Method *m = class_copyMethodList(theClass,&outCount); | |
NSLog(@"%d",outCount); | |
for (int i = 0; i<outCount; i++) { | |
SEL a = method_getName(*(m+i)); | |
NSString *sn = NSStringFromSelector(a); | |
NSLog(@"%@",sn); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment