Update README.md

This commit is contained in:
Marcel Stolin 2016-03-12 10:47:31 +01:00
parent 29ee45fb17
commit 34b8186e0c
1 changed files with 10 additions and 0 deletions

View File

@ -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`.