Output a list of methods available to a class
YourClass *c = [[YourClass alloc] init];
unsigned int outCount = 0;
Method *methods = class_copyMethodList(object_getClass(c), &outCount);
for (int i = 0; i<outCount; i++) {
NSLog(@"%s", sel_getName(method_getName(methods[i])));
}
Written by Kishyr Ramdial
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#