您的位置:首页 > 产品设计 > UI/UE

UIKit should not be called from a secondary thread.

2012-02-01 09:41 281 查看
近日编码,将uiwebview在一个thread中使用了,得到如下提示“

void _WebThreadLockFromAnyThread(bool), 0x8e68890: Obtaining the web lock from a thread other than the main thread or the web thread. UIKit should not be called from a secondary thread.



核心的意思”UIKit should not be called from a secondary thread.“,IOS中不能把与uikit相关的操作(主要是UI控件的操作)放到一个新键线程中去(secondary thread),这会引起线程冲突。

下面是之前搜索到的相关说明的截图



获取线程的调用结果。。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐