Uiwebview使应用程序崩溃

时间:2010-09-14 22:21:15

标签: ipad uiwebview crash

我在nib文件中有一个uiwebview。没有连接任何插座。在我的项目中,我自己做过任何关于线程的事情,而且在nib文件中也是2个uilabels。使用笔尖中的uiwebview,当笔尖加载到屏幕上时应用程序崩溃,如果我删除webview,那么2个uilabels会按预期显示。这是我得到的错误

Bool _WebTryThreadLock(bool), 0x9b39800: 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...

1 个答案:

答案 0 :(得分:0)

在删除之前,您是否尝试调用[webView stopLoading]?

相关问题