#import <Foundation/Foundation.h> #import <objc/runtime.h> int main(int argc, char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; unsigned int i, count; Method *methods; Class target_class = [NSIndexPath class]; // ターゲットのクラス // インスタンスメソッド NSLog(@"Instance Methods:"); methods = class_copyMethodList(target_class, &count); for (i = 0; i < count; i++) { NSLog(@"%3d: %@", i + 1,