Storyboard is good for decoupling the UI from your business logic, but sometimes it could be challenge if you are a newbie.
We will start from the very start.
CMD+Nto create a new file: User interface - storyboard
- Single click the newly created storyboard to open it as the
Object libraryin the
Utilitiespanel, the shortcut is
Tab Bar Controllerinto the storyboard. Now we have a tab bar controller along with 2 sub tab items.
- Let’s add the 3rd tab bar item.
View controllerinto the storyboard.
Tab Bar Iteminto the newly created view controller, it will sit at the same level of the
- From the
Tab Bar Controller Scene, hold
CTRLand drag a line from it to the new view controller.
- From the pop-up, select
Relationship Segue - view controllers
Thanks for reading!
Follow me (albertgao) on twitter, if you want to hear more about my interesting ideas.