NSThread

作者: GreatQiuWei | 来源:发表于2016-12-26 16:06 被阅读0次

    1.线程创建方式

         NSThread*thread = [[NSThreadalloc]initWithTarget:selfselector:@selector(nil)object:nil];
         [thread start];
    
         [NSThreaddetachNewThreadSelector:@selector(nil)toTarget:selfwithObject:nil];
       
        [self  performSelectorInBackground:@selector(nil)withObject:nil];
    
    

    相关文章

      网友评论

          本文标题:NSThread

          本文链接:https://www.haomeiwen.com/subject/ctijvttx.html