Fix: 尝试修复线上 crash 问题
This commit is contained in:
@@ -488,9 +488,14 @@
|
||||
row = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
[card.collectionView selectItemAtIndexPath:[NSIndexPath indexPathForRow:row inSection:0] animated:NO scrollPosition:UICollectionViewScrollPositionNone];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
if (row < dataSource.count) {
|
||||
[card.collectionView selectItemAtIndexPath:[NSIndexPath indexPathForRow:row inSection:0]
|
||||
animated:NO
|
||||
scrollPosition:UICollectionViewScrollPositionNone];
|
||||
}
|
||||
});
|
||||
|
||||
return card;
|
||||
}
|
||||
|
||||
@@ -628,7 +633,9 @@
|
||||
|
||||
- (void)manualSelectedCell {
|
||||
__block NSInteger row = 0;
|
||||
@kWeakify(self);
|
||||
[self.skins enumerateObjectsUsingBlock:^(RoomMicInfoModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
@kStrongify(self);
|
||||
if ([obj.id isEqualToString:@(self.usedID).stringValue]) {
|
||||
row = idx;
|
||||
*stop = YES;
|
||||
@@ -745,7 +752,9 @@
|
||||
|
||||
- (void)manualSelectedCell {
|
||||
__block NSInteger row = 0;
|
||||
@kWeakify(self);
|
||||
[self.effects enumerateObjectsUsingBlock:^(RoomMicInfoModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
@kStrongify(self);
|
||||
if ([obj.id isEqualToString:@(self.usedID).stringValue]) {
|
||||
row = idx;
|
||||
*stop = YES;
|
||||
|
Reference in New Issue
Block a user