报错原因:
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.
翻译
:此应用程序从一个后台线程修改自动布局引擎,这可能导致引擎腐败和奇怪的崩溃。这将导致将来的版本的一个例外。
相对应的代码块:
解决办法
使用下面GCD代码即可(使用主线程更新UI)
dispatch_async(dispatch_get_main_queue(), ^{
[popupController presentPopupControllerAnimated:YES];
// 更UI
});
从新编译,运行即可~!