可以看到苹果SDK的私有方法
NSString *className = NSStringFromClass([UIView class]);
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<outCount; i++) {
SEL a = method_getName(m);
NSString *sn = NSStringFromSelector(a);
NSLog(@"%@",sn);
}
想看什么类 就 把UIView换成你想要的。