An open API service indexing awesome lists of open source software.

https://github.com/versluis/tab-bar-demo

iOS 9 Project demonstrating how to add view controllers to a UITabBar at runtime
https://github.com/versluis/tab-bar-demo

Last synced: 5 months ago
JSON representation

iOS 9 Project demonstrating how to add view controllers to a UITabBar at runtime

Awesome Lists containing this project

README

          

# Tab Bar Demo
iOS 9 Project demonstrating how to add view controllers to a UITabBar at runtime.

The trick is to grab a reference to the current view controller rather than instantiating a new one from the storyboard.

Once that's done, create a new array of view controllers and add it to the tab bar controller via setViewcontrollers:animated.