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.
解决方法:
__weak typeof(self) weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf.navigationController popViewControllerAnimated:NO];
});
回到主线程去刷新UI
修复AutoLayout异常
本文介绍了一个在后台线程中修改AutoLayout引擎导致的问题,并提供了解决方案,即使用dispatch_async回到主线程刷新UI。
866

被折叠的 条评论
为什么被折叠?



