Working with Selectors

2017-05-06  本文已影响0人  事件_666

1 const char * sel_getName(SEL sel);
const char * name = sel_getName(@selector(test));
NSLog(@"name=:%s",name);
2
SEL sel = sel_registerName("youName");
const char *selName = sel_getName(sel);
NSLog(@"==:%s",selName);
sel_getUid("myName");

上一篇下一篇

猜你喜欢

热点阅读