NSDictionary * d=@{@"name":@"zefeng"}; NSString * name =[[d allKeys]objectAtIndex:0]; [self presentViewController:[[NSClassFromString(name) alloc]init] animated:YES completion:nil];
根据名字字符串挑战到指定的类
原文:http://www.cnblogs.com/xiezefeng/p/4989183.html