Merge pull request #45 from jamesjychong/bugfix-buttonbar-selection

Bug Fix - Button Bar Selection on Current Page Issues
This commit is contained in:
michaelEllisUy 2015-08-13 16:01:43 -03:00
commit fa5d0f799f
1 changed files with 3 additions and 0 deletions

View File

@ -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;