2010-09-14 56 views
0

我在一個nib文件中有一個uiwebview。沒有連接到任何網點。在我的項目中沒有任何地方我自己做過任何線程,而且在筆尖文件中也有2個uilabels。隨着uibwebview在筆尖中,當筆尖被加載到屏幕上時,如果我刪除了webview,則應用程序崩潰,然後2個uilabels按預期顯示。這是我得到的錯誤Uiwebview使應用程序崩潰

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... 

回答

0

您是否嘗試在移除它之前調用[webView stopLoading]?