This application is modifying th
2018-10-12 本文已影响11人
有缘人2830
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
莫名其妙的闪退,是因为在刷新界面的时候,没有回归主线程。具体解决方案:
在闪退的地方。
dispatch_async(dispatch_get_main_queue(), ^{
之前的代码 。。。。
});