Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是好奇是否有办法动态提取 SEL 名称?
不确定如何提取 SEL,因为它是 typedef 结构。
谢谢。
请详细说明。但是,我相信您正在尝试将 a 转换SEL为NSString. 如果是这种情况,那么您正在寻找的是:
SEL
NSString
NSString *selectorName = NSStringFromSelector(selector);