iOS - 解决This application is modifying the autolayout engine from a background thread
2016-12-15 16:29
429 查看
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控件的操作 }];
相关文章推荐
- 芒果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 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
- iOS 错误信息 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 engine corruption and weird crashes
- 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
- 更换NSURLSession后 报错 This application is modifying the autolayout engine from a background thread, whi
- 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 engine corruption and weird crashes. This will cause an exception in a future release.
- 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 after 。。。
- "This application is modifying the autolayout engine from a background thread, which can lead to en
- 崩溃问题:iOS9 This application is modifying the autolayout engine from a background thread, which
- warning: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”
- 巧妙解决 this application is modifying the autolayout engine from a background 问题
- xcode7 ios9 处理警告 This application is modifying the autolayout engine from a background thread, which can lead to engi