This application is modifying the autolayout engine from a background threa-线程错误
2016-07-28 18:25
411 查看
警告提示:This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
错误原因:在回调函数中或者后台线程中更新了UI界面,而UI界面必须是在主界面中才能进行修改
解决办法:
dispatch_async(dispatch_get_main_queue(), ^{
<your code>
});
错误原因:在回调函数中或者后台线程中更新了UI界面,而UI界面必须是在主界面中才能进行修改
解决办法:
dispatch_async(dispatch_get_main_queue(), ^{
<your code>
});
相关文章推荐
- Android屏幕适配全攻略
- Effetive Objective - C 1.Objective 9
- Android模拟登陆综合教务系统客户端(java)-jsoup解析数据
- [置顶] Android程序崩溃异常处理之自动发送邮件
- ios的apple应用内支付 接入app
- Android部分机制的构架分析之一--Handler和Looper分析
- Android 之应用程序自动更新
- [IOS开发]CABasicAnimation animationWithKeyPath有哪些值
- Android 事件分发机制
- iOS 判断是否安装了微信、QQ客户端
- Android DiskLruCache完全解析,硬盘缓存的最佳方案
- 域名解析
- android MediaRecorder录制音视频实现直播的基础
- Swift:Command failed due to signal: Segmentation fault: 11
- 初识Android Studio目录
- 【Android进阶】实现各种各样的Tab切换效果
- ffmpeg支持x264的android平台编译
- android插件化学习笔记(二)
- swift - UIToolbar 的用法
- iOS 横屏的问题,相信很多新手朋友都是懵懵懂懂