如果collectionview使用
NSInteger row = [[self.passedParamsnonNullObjectForKey:@"selectedImageIndexPath"]integerValue];
NSIndexPath *index = [NSIndexPath indexPathForItem:row inSection:0];
[weakSelf.collectionView scrollToItemAtIndexPath:indexatScrollPosition:UICollectionViewScrollPositionTop animated:YES];
不能滑动到某个cell的话,说明在这个方法的后面哈有影响collectionview的方法,或者有其他的一些 动画的影响。
转载请注明原文地址: https://ju.6miu.com/read-663920.html