一个延时调用问题
如果用下面第1行的寫(xiě)法,調(diào)用
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(removeFromSuperview) object:nil];
可以生效
如果用下面第3行的寫(xiě)法,調(diào)用
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(removeFromSuperview) object:nil];
不能夠取消?removeFromSuperview 這個(gè)方法
1 [self performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:TIPSDISAPPEARTIME]; 2 3 [self performSelector:@selector(removeFromSuperview) withObject:self afterDelay:TIPSDISAPPEARTIME];?
轉(zhuǎn)載于:https://www.cnblogs.com/huangzizhu/p/3699639.html
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
- 上一篇: boa + ajax + cgi a
- 下一篇: 转:Google论文之三----MapR