iphone系統(tǒng)升級(jí)到iOS13之后票渠,公司項(xiàng)目的loading圖不顯示文字和loading圖標(biāo)了逐哈,在網(wǎng)上多方查找,貌似是解決了問題问顷,解決方案如下:
SVProgressHUD.m文件
如果是SVProgressHUD老版本昂秃,把如下代碼(938行左右)
//修改文字(938行左右)
if(!_stringLabel.superview)
[self.hudView addSubview:_stringLabel];
//修改圖片(951行左右)
if(!_imageView.superview)
[self.hudView addSubview:_imageView];
替換為
//修改文字
if(![self.hudView.subviews containsObject:_stringLabel]) {
[self.hudView addSubview:_stringLabel];
}
//修改圖片
if(![self.hudView.subviews containsObject:_imageView]) {
[self.hudView addSubview:_imageView];
}
如果是SVProgressHUD新版本,把如下代碼
//修改文字(1309行左右)
if(!_statusLabel.superview) {
[self.hudView.contentView addSubview:_statusLabel];
}
//修改圖片(1329行左右)
if(!_imageView.superview) {
[self.hudView.contentView addSubview:_imageView];
}
替換為
//修改文字(1309行左右)
if(![self.hudView.subviews containsObject:_statusLabel]){
[self.hudView addSubview:_statusLabel];
}
//修改圖片(1329行左右)
if(![self.hudView.subviews containsObject:_imageView]){
[self.hudView addSubview:_imageView];
}
然后再試試杜窄,應(yīng)該就可以了肠骆,參考鏈接點(diǎn)擊這里