//查看蘋果所有的API //首先要導入#importNSString *className = NSStringFromClass([UIView class]); //這裡是uiview,可以改成自己想要的 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