iOS開發中方法延遲執行的幾種方式

    iOS開發中方法延遲執行的幾種方式有如下四種: Method1. performSelector方法 Method2. NSTimer定時器 Method3. NSThread線程的sleep Method4. GCD。 其中延遲方法以下: - (void)delayMethod{   NSLog(@"delayMethod"); } Method1:performSelector [se
相關文章
相關標籤/搜索