This application is modifying the autolayout engine from a background thread

根据提示堆栈log,找一下哪个地方更新UI没用主线程;

报错信息没有截图,有截图的同学可以发给我贴上图。下边是更详细的解答,翻墙看。

http://stackoverflow.com/questions/31951704/this-application-is-modifying-the-autolayout-engine-from-a-background-thread-wh 

dispatch_sync(dispatch_get_main_queue(), ^{

//把要更新的放着就行了

});

你可能感兴趣的:(This application is modifying the autolayout engine from a background thread)