我希望编写一个宏,在任何引用方法选择器的方法中使用.我不希望传递方法的文字名称.例如:
#define RERUN [self performSelector:{something} withObject:nil afterDelay: 0.0]
上面的"{something}"将解析为使用宏的方法的选择器.
有办法做到这一点吗?
methods introspection objective-c selector
introspection ×1
methods ×1
objective-c ×1
selector ×1