Skip to content

Instantly share code, notes, and snippets.

@dopcn
Created July 29, 2014 09:25
Show Gist options
  • Save dopcn/e96f8d48f36605bac68e to your computer and use it in GitHub Desktop.
Save dopcn/e96f8d48f36605bac68e to your computer and use it in GitHub Desktop.
NSLog all headers
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