EHHorizontalSelectionView
EHHorizontalSelectionView copied to clipboard
Not scrolling to Specific Index
Hi
When i set selectIndex
to specific index, its not moving. Any suggestion ?
Thanks
In file EHHHorizontalSelectionView.m, update method (void)selectIndex:(NSUInteger)index to:
{
NSIndexPath * indexPath = [NSIndexPath indexPathForRow:index inSection:0];
[_collectionView selectItemAtIndexPath:indexPath animated:NO scrollPosition:UICollectionViewScrollPositionCenteredHorizontally];
dispatch_async(dispatch_get_main_queue(), ^{
[self collectionView:_collectionView didSelectItemAtIndexPath:indexPath];
});
}
In swift, When I set below, I get the crash
horizontalSelectionView.select(index)"
-[EHHorizontalSelectionView select:]: unrecognized selector sent to instance