修复bug
This commit is contained in:
@@ -120,7 +120,10 @@ QPhotoImageModel * imageInfo = [self.photoList safeObjectAtIndex1:indexPath.row]
|
||||
}
|
||||
if ([self.photoList containsObject:model]) {
|
||||
NSInteger index = [self.photoList indexOfObject:model];
|
||||
[self.collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:index + 1 inSection:0] atScrollPosition:UICollectionViewScrollPositionRight animated:YES];
|
||||
if(index + 1 < self.photoList.count){
|
||||
[self.collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:index + 1 inSection:0] atScrollPosition:UICollectionViewScrollPositionRight animated:YES];
|
||||
}
|
||||
|
||||
}
|
||||
model.number = self.chooseArray.count;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user