ios添加缓存后界面刷新崩溃问题
2015-11-04 10:48
471 查看
最近对程序数据做了缓存,读取缓存的操作在后台线程执行,在读取完之后直接使用delegate刷新界面,界面出现严重卡顿,查看控制台输出日志看到如下问题:
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.
出现该问题主要是因为刷新界面需要在住线程中进行,于是将刷新界面操作放在
dispatch_async(dispatch_get_main_queue(), ^{
[_tableView reloadData];
});
问题解决,以后还要多多学习啊!!!
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.
出现该问题主要是因为刷新界面需要在住线程中进行,于是将刷新界面操作放在
dispatch_async(dispatch_get_main_queue(), ^{
[_tableView reloadData];
});
问题解决,以后还要多多学习啊!!!
相关文章推荐
- 单例的书写
- iOS消息传递机制---KVC和KVO
- 明天ios中实现staggeringBeauty的效果(四)
- 获取iOS版本号
- 苹果向开发者发布 iOS 9.2 第二个测试版
- Ios开发之协议protocol
- 深入理解iOS API系列(四)理解CNContactPickerDelegate
- iOS开发——热门iOS第三方库大盘点
- CocoaPods使用
- PNChart iOS图表类第三方
- AFNetworking详细文档包含ios上传和下载
- iOS开发-证书配置
- iOS 图片流的上传
- GitHub常用的iOS库
- iOS—OC——沙盒机制
- iOS中添加自己的字体或者引用字体包
- iOS textview的基础用法
- iOS 在类别中犯的错误
- 【11/03】 iOS开发成长之路,【出现( linker command failed with exit code 1)错误总结】
- iOS—OC——C——野指针