iOS - 解决This application is modifying the autolayout engine from a background thread
来源:互联网 发布:伪娘 知乎 编辑:程序博客网 时间:2024/06/07 20:07
This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
原因
在子线程中进行了对UI控件的操作。比如在子线程下添加了一个UIView,而UI控件的操作都必须在主线程下~
解决方案
回到主线程更新UI
[[NSOperationQueue mainQueue] addOperationWithBlock:^{ // 进行UI控件的操作}];
0 0
- iOS - 解决This application is modifying the autolayout engine from a background thread
- 解决IOS9 This application is modifying the autolayout engine from a background thread, which can lea
- iOS 错误信息 This application is modifying the autolayout engine from a background thread...
- 芒果iOS开发之This application is modifying the autolayout engine from a background thread崩溃
- 芒果iOS开发之This application is modifying the autolayout engine from a background thread崩溃
- This application is modifying the autolayout engine from a background thread after the engine was ac
- iOS app运行时报错:This application is modifying the autolayout engine from a background thread after the
- iOS运行时报错:This application is modifying the autolayout engine from a background thread after the
- iOS9 This application is modifying the autolayout engine from a background thread, which
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- iOS9 This application is modifying the autolayout engine from a background thread, which
- This application is modifying the autolayout engine from a background thread...
- 崩溃问题:iOS9 This application is modifying the autolayout engine from a background thread, which
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- "This application is modifying the autolayout engine from a background thread, which can lead to en
- This application is modifying the autolayout engine from a background thread 原因
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- This application is modifying the autolayout engine from a background thread, which can lead to engi
- php 删除目录,文件
- request.getRequestDispatcher()跳转+中文乱码
- android 常用api 接口签名验证
- uboot编译
- Android 热修复AndFix
- iOS - 解决This application is modifying the autolayout engine from a background thread
- Spring管理filter和servlet
- Android WebView 跳转动画和后退动画的处理
- uboot内文件介绍
- ERP顾问工作中应该注意哪些工作是不该做的
- jquery 等待3秒钟执行函数
- [转]c++ 时间类型详解 time_t
- struts.objectFactory和struts.objectFactory.spring.autoWire
- c# winform通过本地WebService接口访问SQL数据库实例