object-c中建立线程的方法有哪些?在主线程中执行代码用什么方法?若是想要延时执行代码,用什么方法?

1.object-c中用NSThread建立线程的方法:async NSThread *oneThread=[[NSThread alloc]initWithTarget:self selector:@selector(sayMethod) object:nil]; [oneThread start];  还能够是 [self performSelectorInBackground:
相关文章
相关标签/搜索