object-c中建立線程的方法有哪些?在主線程中執行代碼用什麼方法?若是想要延時執行代碼,用什麼方法?

1.object-c中用NSThread建立線程的方法:async NSThread *oneThread=[[NSThread alloc]initWithTarget:self selector:@selector(sayMethod) object:nil]; [oneThread start];  還能夠是 [self performSelectorInBackground:
相關文章
相關標籤/搜索