执行方法
2017-08-21 本文已影响5人
张家杰仔
//取消执行方法
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(animateHide) object:nil];
//延时执行方法
[self performSelector:@selector(animateHide) withObject:nil afterDelay:5.0f];
//取消执行方法
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(animateHide) object:nil];
//延时执行方法
[self performSelector:@selector(animateHide) withObject:nil afterDelay:5.0f];