Skip to content

Commit

Permalink
Merge pull request #142 from mrcly/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Martin Barreto committed Mar 12, 2016
2 parents 29ee45f + 34b8186 commit be30eda
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ settings.style.buttonBarItemsShouldFillAvailiableWidth = true
public var buttonBarHeight: CGFloat?
```

**Important:** Settings should be called before `viewDidLoad` is called.
```swift
override func viewDidLoad() {
self.settings.style.selectedBarHeight = 2
self.settings.style.selectedBarBackgroundColor = UIColor.whiteColor()

super.viewDidLoad()
}
```

##### Update cells when selected indicator changes

We may need to update the indicator cell when the displayed view controller changes. The following function properties help to accomplish that. Depending on our pager `pagerBehaviour` value we will have to set up `changeCurrentIndex` or `changeCurrentIndexProgressive`.
Expand Down

0 comments on commit be30eda

Please sign in to comment.