iOS 如何在其他类中调用本类的方法
2019-01-17 本文已影响0人
零粹
宏定义 - 传递函数、参数
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)
使用:
SuppressPerformSelectorLeakWarning([self performSelector:method withObject:value]);
value:需要传递的参数
self:本类对象