Commit 06c06e70 cgx

修复白噪音在iPhone 13 Pro Max设备显示bug(很奇葩)

1 个父辈 a315aea6
......@@ -227,6 +227,9 @@
[self.homeTV updateCourseMusicCell:CellTypeCourse data:self.safeListData];
[self.homeTV updateCourseMusicCell:CellTypeMusic data:self.helpListData];
[self.homeTV updateNoiseAllTypeData:self.noiseTypeArr];
// 重置白噪音播放
[[NoisePlayerManager sharedNoisePlayerManager] removeAllNoiseAudioCell];
});
});
}
......
......@@ -46,8 +46,6 @@
self.exceptionView.hidden = YES;
self.noiseAudioArr = requestModel.noiseAudioArr;
[self.noiseAudioView reloadData];
// 重置
[[NoisePlayerManager sharedNoisePlayerManager] removeAllNoiseAudioCell];
} else {
self.exceptionView.hidden = NO;
}
......@@ -108,10 +106,11 @@
if (!_noiseAudioView) {
CGFloat space = (kScreenWidth - 240 - 40)/3.0;
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
layout.sectionInset = UIEdgeInsetsMake(15, 20, 0, 20);
layout.sectionInset = UIEdgeInsetsMake(15, 20, 0, 19.9);
layout.itemSize = CGSizeMake(60, 53);
layout.minimumLineSpacing = 12;
layout.minimumInteritemSpacing = space;
layout.scrollDirection = UICollectionViewScrollDirectionVertical;
_noiseAudioView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 327 + 70) collectionViewLayout:layout];
_noiseAudioView.dk_backgroundColorPicker = DKColorPickerWithKey(VCViewBG);
_noiseAudioView.delegate = self;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!