Merge pull request #45 from jamesjychong/bugfix-buttonbar-selection
Bug Fix - Button Bar Selection on Current Page Issues
This commit is contained in:
commit
fa5d0f799f
|
|
@ -168,6 +168,9 @@
|
|||
|
||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
if (indexPath.item == self.currentIndex)
|
||||
return;
|
||||
|
||||
[self.buttonBarView moveToIndex:indexPath.item animated:YES swipeDirection:XLPagerTabStripDirectionNone];
|
||||
self.shouldUpdateButtonBarView = NO;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue