unsigned int count = 0;
Method *memberFuncs = class_copyMethodList([MKMapView class], &count);
for (int i = 0; i < count; i++)
{
SEL address = method_getName(memberFuncs[i]);
NSString *methodName = [NSString stringWithCString:sel_getName(address) encoding:NSUTF8StringEncoding];
NSLog(@"member method : %@",methodName);
}
网友评论