Skip to content

Instantly share code, notes, and snippets.

@ahmed-abdurrahman
Created May 2, 2017 11:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ahmed-abdurrahman/6a9d32649fdef1f814fff65a6934f406 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
segmentedControl.initUI()
segmentedControl.selectedSegmentIndex = TabIndex.firstChildTab.rawValue
displayCurrentTab(TabIndex.firstChildTab.rawValue)
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if let currentViewController = currentViewController {
currentViewController.viewWillDisappear(animated)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment