警告提示: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>

});

相关文章:

  • 2021-07-11
  • 2021-12-22
  • 2021-11-02
  • 2021-10-12
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-05
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案