浅谈iOS延迟执行的几种方式以及比较

1、performSelector方法:async [self performSelector:@selector(delayMethod) withObject:nil afterDelay:1.0f];spa 1.特色: 此方式要求必须在主线程中执行,不然无效。 是一种非阻塞的执行方式, 暂时未找到取消执行的方法。线程 2、定时器:NSTimer:orm [NSTimer scheduledT
相关文章
相关标签/搜索