iOS开发中方法延迟执行的几种方式

    iOS开发中方法延迟执行的几种方式有如下四种: Method1. performSelector方法 Method2. NSTimer定时器 Method3. NSThread线程的sleep Method4. GCD。 其中延迟方法以下: - (void)delayMethod{   NSLog(@"delayMethod"); } Method1:performSelector [se
相关文章
相关标签/搜索