由于一些自身引起的问题,我的 iPhone 应用程序崩溃并收到以下错误:
Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
解决这个问题不是问题,但错误消息让我思考......
我知道主线程是什么,并且我知道如何将上下文切换回它。但是,这个“网络线程”是什么?我想我以前从未听说过这个术语。
Web 线程是所有线程共享的单个线程UIWebViews
它在执行请求时暂时阻止主线程的执行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)