This application is modifying the autolayout engine from a background threa-线程错误
2024-08-20 14:50:36
警告提示: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>
});
最新文章
- 基于Composer Player 模型加载和相关属性设置
- IE兼容方法
- ScrollReveal.js – 帮助你实现超炫的元素运动效果
- MTK6515 android打版软件配置(DrvGen.exe 使用)
- 97. Interleaving String
- Coding girl一个老程序员谈到的一个女程序员的故事
- SQLite 入门教程(四)增删改查,有讲究
- Spring Task Scheduler - No qualifying bean of type [org.springframework.scheduling.TaskScheduler] is defined
- 1634: [Usaco2007 Jan]Protecting the Flowers 护花
- 通过分析HSL/HSB获取图片主色调
- Jetty - 教程
- dubbo服务暴露
- python redirect和render的区别
- hdu1569 莫比乌斯反演
- Window查看系统激活状态
- Android进程和线程(Android开发指南--译)
- $NOIp$前的日常
- C#.Net中操作XML方法一
- RabbitMQ安装与初始配置【转载】
- Windows下安装jenkins,关闭jenkins,修改jenkins端口号