NSStringFromSelector()
- 将SEL对象转为NSString对象
SEL sel=@selector(compare:);
NSString *functionName= NSStringFromSelector(sel);
NSSelectorFromString()
Cocoa提供NSSelectorFromString,利用OC动态特性是通过String来生成Selectors
NSSelectorFromString动态加载实例方法
SEL anotherSel=NSSelectorFromString(functionName);
- 以上