OC开线程的三种方式

第一种NSThread     //NSThread 方法1 须要手动start];     NSThread *thread=[[NSThread alloc]initWithTarget:self selector:@selector(threadRun:) object:@"参数"];    thread.name =@"线程1";     //优先级 0.0-1.0 默认0.5 0.0最低
相关文章
相关标签/搜索