//在ARC項(xiàng)目中使用 performSelector: withObject: 函數(shù)出現(xiàn)“performSelector may cause a leak because its selector is unknown”。
#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)