指定したクラスの、実装されているメソッドを列挙する

#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 …</objc/runtime.h></foundation/foundation.h>