This application is modifying the autolayout engine
2019独角兽企业重金招聘Python工程师标准>>>
[weakSelf.reView3 reloadDataWithCallBack:^(UIButton * x, id y) { switch (x.tag) { case 1: case 2: { // [DialogUtil showText:@"门牌照片"]; [[XYPhotoSheet manager] showActionSheetInView:weakSelf.view taget:weakSelf title1:@"相册" title2:@"相机" cancel:@"取消" success:^(id image) { switch (x.tag) { case 0: { if (weakSelf.mData.count > 0) { [weakSelf.mData replaceObjectAtIndex:0 withObject:image]; }else{ [weakSelf.mData addObject:image]; } } break;
default:{if (weakSelf.mData.count > 1) {[weakSelf.mData replaceObjectAtIndex:1 withObject:image];}else{[weakSelf.mData addObject:image];}}break;}dispatch_async(dispatch_get_main_queue(), ^{[weakSelf.reView3 reloadDatawithData:image tag:x.tag];});}];}break;case 3:{[weakSelf uploadInfo];}break;case 4:{[DialogUtil showText:x.titleLabel.text];}break;default:break;}
} ];
###原代码
[weakSelf.reView3 reloadDatawithData:image tag:x.tag];
###修正代码 dispatch_async(dispatch_get_main_queue(), ^{ [weakSelf.reView3 reloadDatawithData:image tag:x.tag]; }); ###场景 ####在block中执行更新UI操作,控制台发出警告,但没有报错,或崩溃
转载于:https://my.oschina.net/u/2601834/blog/859896
This application is modifying the autolayout engine相关推荐
- iOS9 This application is modifying the autolayout engine from a background thread, which
以前在Xcode7之间项目没有问题,但是使用Xcode7后 突然不好使了,This application is modifying the autolayout engine from a back ...
- warning:This application is modifying the autolayout engine from a background thread
警告提示:This application is modifying the autolayout engine from a background thread, which can lead to ...
- sh执行文件 参数传递_sh 脚本执行sql文件传参数
一.前言 今天做数据删除,用的命令行输入参数,并且调用执行的sql文件,我采用了sed命令,进行替换. sh脚本如下 #! /bin/sh echo "Please enter the ba ...
- iOS 混合网页开发 问题
在利用JavaScriptCore与H5交互时出现异常提示: This application is modifying the autolayout engine from a background ...
- 收到“此应用程序正在从后台线程修改自动布局引擎”错误?
本文翻译自:Getting a "This application is modifying the autolayout engine from a background thread&q ...
- 【苹果推??iMessage群发设置内容参数】什么是苹果推信?什么是苹果推?什么是日历推
推荐内容IMESSGAE相关 作者✈️@IMEAE推荐内容 iMessage苹果推软件 *** 点击即可查看作者要求内容信息 作者✈️@IMEAE推荐内容 1.家庭推内容 *** 点击即可查看作者要求 ...
- iOS 13 报错:[Assert] Unsupported use of UIKit view-customization API off the main thread
萤石摄像头回看,在iOS 11上运行好好,在iOS 13上却报错了,报错如下: 2021-05-11 15:36:38.174462+0800 App-Beta[1141:430280] [Asser ...
- iOS 开发问与答(56-84)
56. iOS 9 以后的 Push 通知注册(swift 1) 57.如何创建一个纯色构成的背景图片,并用于设置按钮的背景色? 58. 按钮的倒计时效果 59. 如何单独安装指定的 pod? 60. ...
- iOS 错误锦集
从今天开始,我打算把自己所有遇到的错误,无论大大小小,都保存下来,以供自己反思,少点粗心才能提高效率 1.This application is modifying the autolayout en ...
最新文章
- 使用Sentinel配置Redis 3.x主从高可用服务
- 如何通过 Serverless 技术降低微服务应用资源成本?
- 获取目录的大小函数linux,Linux C++获取文件夹大小1(通过lstat实现)
- ucos ii 文件分析
- oracle sql条件语句,谁能介绍下Oraclesql之条件语句?
- iOS开发UI篇—核心动画(基础动画)
- 开放世界下的混合域适应 ——面向真实自然场景下的全新迁移学习范式
- linux windows 区别
- 药物临床试验数据递交PMDA的规定
- 基于opencv的数字识别
- 关于软件开发的若干总结(2022-08-27)
- java | (十六)XML、代理
- Hi3516A开发--板卡烧写
- Java网编之:Socket套接字
- 输出n行数字三角形(已修改)
- 文档中如何插入计算机剪贴画,在Word 2007文档中插入剪贴画 -电脑资料
- 【IPD】IPD流程
- 在jython中获取jython-[standalone-]x.x.x.jar执行文件目录
- C# 根据汉字获取首字母拼音或全拼
- 学习日志day41(2021-09-03)(1、文件的上传 2、文件的查看 3、文件的下载 4、使用工具类上传文件 5、基于servlet3.0以上的文件上传 )