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
- Host: GitHub
- URL: https://github.com/versluis/tab-bar-demo
- Owner: versluis
- Created: 2015-11-24T23:23:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T23:25:25.000Z (over 10 years ago)
- Last Synced: 2023-03-14T05:15:30.183Z (over 3 years ago)
- Language: Objective-C
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.