代码改变世界

随笔档案-2012年2月1日

UIKit should not be called from a secondary thread.

2012-02-01 09:41 by ianwang, 1140 阅读, 收藏,
摘要: 近日编码,将uiwebview在一个thread中使用了,得到如下提示“void_WebThreadLockFromAnyThread(bool),0x8e68890:Obtainingtheweblockfromathreadotherthanthemainthreadorthewebthread.UIKitshouldnotbecalledfromasecondarythread.”核心的意思”UIKit should not be called from a secondary thread.“,IOS中不能把与uikit相关的操作(主要是UI控件的操作)放到一个新键线程中去(secon 阅读全文