This application is modifying the autolayout engine
2019獨角獸企業(yè)重金招聘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中執(zhí)行更新UI操作,控制臺發(fā)出警告,但沒有報錯,或崩潰
轉(zhuǎn)載于:https://my.oschina.net/u/2601834/blog/859896
總結(jié)
以上是生活随笔為你收集整理的This application is modifying the autolayout engine的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: weblogic负载分发
- 下一篇: zabbix 介绍