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的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: weblogic负载分发
- 下一篇: zabbix 介绍