//键值对, function : checkUpdate
SEL func = NSSelectorFromString(dict[@"function"]);
}
SEL func = NSSelectorFromString(dict[@"function"]);
if ([self respondsToSelector:func]) {
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self performSelector:func];
}
红色的代表就是关闭警告的代码。
将需要关闭的代码放到红色代码中间就可以了。