diff --git a/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m b/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m index 43a064e..59d1f89 100644 --- a/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m +++ b/XLPagerTabStrip/XL/Controllers/XLButtonBarPagerTabStripViewController.m @@ -71,6 +71,7 @@ } self.buttonBarView.labelFont = [UIFont fontWithName:@"Helvetica-Bold" size:18.0f]; self.buttonBarView.leftRightMargin = 8; + [self.buttonBarView setScrollsToTop:NO]; UICollectionViewFlowLayout * flowLayout = (id)self.buttonBarView.collectionViewLayout; [flowLayout setScrollDirection:UICollectionViewScrollDirectionHorizontal]; [self.buttonBarView setShowsHorizontalScrollIndicator:NO];