多么痛的领悟………………
延时方法:
[self performSelector:@selector(timeOutHandleAction) withObject:nil afterDelay:10];
在10s内取消延时的方法:
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(timeOutHandleAction) object:nil];
多么痛的领悟………………
延时方法:
[self performSelector:@selector(timeOutHandleAction) withObject:nil afterDelay:10];
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(timeOutHandleAction) object:nil];