Merge branch 'master' of github.com:xmartlabs/XLPagerTabStrip
This commit is contained in:
commit
e6366ac68b
|
|
@ -3,7 +3,7 @@ osx_image: xcode7.2
|
|||
|
||||
before_install:
|
||||
- brew update
|
||||
- brew install carthage
|
||||
- brew outdated carthage || brew upgrade carthage
|
||||
- if brew outdated | grep -qx xctool; then brew upgrade xctool; fi
|
||||
- carthage update --platform iOS
|
||||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
||||
|
|
|
|||
|
|
@ -240,8 +240,8 @@ public class ButtonBarPagerTabStripViewController: PagerTabStripViewController,
|
|||
buttonBarView.moveToIndex(indexPath.item, animated: true, swipeDirection: .None, pagerScroll: .Yes)
|
||||
shouldUpdateButtonBarView = false
|
||||
|
||||
let oldCell = buttonBarView.cellForItemAtIndexPath(NSIndexPath(forItem: currentIndex, inSection: 0)) as! ButtonBarViewCell
|
||||
let newCell = buttonBarView.cellForItemAtIndexPath(NSIndexPath(forItem: indexPath.item, inSection: 0)) as! ButtonBarViewCell
|
||||
let oldCell = buttonBarView.cellForItemAtIndexPath(NSIndexPath(forItem: currentIndex, inSection: 0)) as? ButtonBarViewCell
|
||||
let newCell = buttonBarView.cellForItemAtIndexPath(NSIndexPath(forItem: indexPath.item, inSection: 0)) as? ButtonBarViewCell
|
||||
if pagerBehaviour.isProgressiveIndicator {
|
||||
if let changeCurrentIndexProgressive = changeCurrentIndexProgressive {
|
||||
changeCurrentIndexProgressive(oldCell: oldCell, newCell: newCell, progressPercentage: 1, changeCurrentIndex: true, animated: true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue