您的位置:首页 > 移动开发

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>

});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: