Last Updated: February 25, 2016
·
388
· kishyr

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])));
}