UICollectionView scrollToItemAtIndexPath: atScrollPosition: animated: doesn't work with iOS8
I am testing an app on iOS8 that works well on iOS7. It seems that the "scrollToItemAtIndexPath: atScrollPosition: animated:" function does not work on iOS8.
This is my function that used it.
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
if([collectionView isEqual:m_CollectionViewSequence])
[m_CollectionViewSequence scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally animated:YES];
}
+3
source to share
No one has answered this question yet
Check out similar questions: