//类名的反射
NSStrin *str = @"Person";
Class class = NSClassFromString(str);
Person *person = [[class alloc] init];
//Class 变成字符串
NSString *name = NSStringFromClass([Person class]);
//方法的反射
NSString *method = @"test";
SEL selector = NSSelectorFromString(method);
[person performSelector:selector];
[person release];