修复bug
This commit is contained in:
@@ -99,8 +99,8 @@
|
||||
}
|
||||
[self.collectionView reloadData];
|
||||
[self.collectionView.superview layoutIfNeeded];
|
||||
if(_infoList.count > self.path){
|
||||
UICollectionViewLayoutAttributes *layoutAttributes = [self.collectionView.collectionViewLayout layoutAttributesForItemAtIndexPath:[NSIndexPath indexPathForRow:self.path inSection:0]];
|
||||
if(_infoList.count > self.path && self.path > 3){
|
||||
UICollectionViewLayoutAttributes *layoutAttributes = [self.collectionView.collectionViewLayout layoutAttributesForItemAtIndexPath:[NSIndexPath indexPathForRow:self.path - 3 inSection:0]];
|
||||
// 滑动
|
||||
CGPoint poiot = CGPointMake(layoutAttributes.frame.origin.x - kGetScaleWidth(10), layoutAttributes.frame.origin.y);
|
||||
[self.collectionView setContentOffset:poiot animated:YES];
|
||||
|
Reference in New Issue
Block a user