首页 > 代码库 > IOS忽略-Warc-performSelector-leaks警告

IOS忽略-Warc-performSelector-leaks警告

IOS忽略-Warc-performSelector-leaks警告

by 伍雪颖

#define SuppressPerformSelectorLeakWarning(Stuff) do { _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") Stuff; _Pragma("clang diagnostic pop") } while (0)

SuppressPerformSelectorLeakWarning([self performSelector:customSelector]);

IOS忽略-Warc-performSelector-leaks警告