EHHorizontalSelectionView icon indicating copy to clipboard operation
EHHorizontalSelectionView copied to clipboard

Not scrolling to Specific Index

Open Ghousepasha-ios opened this issue 7 years ago • 2 comments

Hi

When i set selectIndex to specific index, its not moving. Any suggestion ?

Thanks

Ghousepasha-ios avatar Oct 09 '17 13:10 Ghousepasha-ios

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];
    });
    
}

robert4381 avatar Feb 24 '18 22:02 robert4381

In swift, When I set below, I get the crash

horizontalSelectionView.select(index)"

-[EHHorizontalSelectionView select:]: unrecognized selector sent to instance

ramanocs1145 avatar Mar 29 '18 14:03 ramanocs1145