线程:This application is modifying the autolayout engin from a background thread
2016-04-18 13:29
525 查看
http://blog.csdn.net/fuzongjian/article/details/50621676
昨天处理相册问题是,遇到这样的问题:
[objc] view
plain copy
This application is modifying the autolayout engin from a background thread,which can lead to engine corruption and weird crashes,This will cause an exception in a future rellease
看看下面的截图也许就能明白点儿什么
我自己的是这样的写的:(大致意思是我避开了主线开辟了一个线程去相册读取数据,拿到数据后我直接去更新数据,而不是代码回到主线程中去更新数据)
搞明白错误在哪,修改八阿哥手到擒来:
所以说,从别的线程中拿到数据源后,必须回到主线程中更新数据和UI。
昨天处理相册问题是,遇到这样的问题:
[objc] view
plain copy
This application is modifying the autolayout engin from a background thread,which can lead to engine corruption and weird crashes,This will cause an exception in a future rellease
看看下面的截图也许就能明白点儿什么
我自己的是这样的写的:(大致意思是我避开了主线开辟了一个线程去相册读取数据,拿到数据后我直接去更新数据,而不是代码回到主线程中去更新数据)
搞明白错误在哪,修改八阿哥手到擒来:
所以说,从别的线程中拿到数据源后,必须回到主线程中更新数据和UI。
相关文章推荐
- Unity3D学习日记(二)使用UGUI制作虚拟摇杆控制摄像机
- aodh M版本新特性 - Remove eventlet from Aodh in favour of threaded approach
- Android studio切换分支
- android adb, retrieve database using run-as
- 关于Unity3D5.X 动态批处理(Dynamic Batching)实测,区别于4.0版本
- [Android][Android Studio] *.jar 与 *.aar 的生成与*.aar导入项目方法
- 可以无限循环,自动旋转,停靠的3D旋转布局控件
- Android 之 Drawable
- 第四章--android核心组件之Activity与ListActivity中使用ListView的区别
- _视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear等的区别及用途
- iOS 开发--github的demo
- iOS中几种数据持久化方案总结
- iOS视频开发经验
- iOS 计算文件夹中包含所有文件的大小
- Android自定义View(一)
- Android 安全卫士 第二天
- android客户端学习-activity
- 读书笔记之Android绘图机制及图像处理值色彩处理的相关技巧
- Android 调用手机相册、摄像头拍照及剪裁照片
- 9patch背景导致控件内容异常