欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

This application is modifying the autolayout engine

发布时间:2025/5/22 编程问答 39 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。