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),这会引起线程冲突。
下面是之前搜索到的相关说明的截图
获取线程的调用结果。。
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),这会引起线程冲突。
下面是之前搜索到的相关说明的截图
获取线程的调用结果。。
相关文章推荐
- ecshop二次开发:Non-static method cls_image::gd_version() should not be called statically in的解决
- presto报错:outputFormat should not be accessed from a null StorageFormat
- -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread.【创建键盘监听事件,然后操作键盘(弹出、收回),结果在运行程序时出现如下错误(如有知道解决办法的朋友请留言探讨!)】
- ECshop安装问题一解决:Strict Standards: Non-static method cls_image::gd_version() should not be called stati
- Exception in thread "main" java.sql.SQLException: Connections could not be acquired from the underly
- you are calling a UIKit method that can only be invoked from the UI thread.
- Error: CompareBaseObjectsInternal can only be called from the main thread
- Unity3d报奇怪的错误CompareBaseObjectsInternal can only be called from the main thread.
- commit() should not be called while in auto-commit mode
- php错误:non-static method xxx()should not be called statically
- Exception in thread "main" java.sql.SQLException: Connections could not be acquired from the underly
- Error: CompareBaseObjectsInternal can only be called from the main thread
- 安卓开发异常rx.exceptions.OnErrorNotImplementedException: Must be called from main thread of fragment host
- get_transform is not allowed to be called from a MonoBehaviour constructor (or instance field initia
- Unity3d报告奇怪的错误CompareBaseObjectsInternal can only be called from the main thread.
- 安装ecmall报错Strict Standards: Non-static method ECMall::startup() should not be called statically in D
- unity DestroyBuffer can only be called from the main thread
- Unity3d报奇怪的错误CompareBaseObjectsInternal can only be called from the main thread.
- enum should not be used as an identifier since it is a reserved keyword from source level 1.5 on
- Strict standards: Non-static method cls_image::gd_version() should not be called statically in