在获取不到子线程的时候
CFRunLoopRef ref = CFRunLoopGetCurrent();//获取线程runloop CFRunLoopRun();//调用runloop阻塞 CFRunLoopStop(ref);//取消阻塞
听雨阁
本文标题:iOS阻塞当前线程
本文链接:https://www.haomeiwen.com/subject/pvfofftx.html
网友评论