NSSelectorFromString 使用示例
NSSelectorFromString 动态加载实例方法。 SEL
sel = NSSelectorFromString(@"yourMethod:")//有参数
if([object respondsToSelector:sel]) {
[object performSelector:sel withObject: @"test" ];
//如果有两个参数,使用两个withObject:参数; }