# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self performSelector:callFunc withObject:array[1]];
# pragma clang diagnostic pop
使用原理:将出现警告的代码加入内存栈中
去除内存上的警告,避免程序崩掉,布布扣,bubuko.com
原文:http://www.cnblogs.com/angongIT/p/3911518.html