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

Method1. performSelector方法 Method2. NSTimer定時器 Method3. NSThread線程的sleep Method4. GCD 公用延遲執行方法 - (void)delayMethod{ NSLog(@"delayMethodEnd"); } Method1:performSelector [self performSelector:@selec
相關文章
相關標籤/搜索