From 34b8186e0cdac7b1ad2f8ea075f17a92c3225238 Mon Sep 17 00:00:00 2001 From: Marcel Stolin Date: Sat, 12 Mar 2016 10:47:31 +0100 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c3910db..679ee74 100644 --- a/README.md +++ b/README.md @@ -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`.