View mess up when i add new tab bar item

93 views Asked by At

I have view like in first picture first picture

When i add new tab bar item to the view, it will mess up like below picture (Second picture). I don't know what is the problem, how can i solve this? Thank You!

second picture

1

There are 1 answers

9
3stud1ant3 On

Now using tab bar controller you can add the new tabbar item for a new controller by following these steps:

  • Drag a tab bar controller onto the storyboard.

  • Drag a view controller.

  • Open view controller's connections inspecter and find relationship under presenting segues.

  • Drag from a little circle in front of it to the tab bar controller.Then click on viewcontrollers.

Your connections inspecter for the new viewcontroller should look like the below image. (View Controller seen in the image is the subclass of UITabBarController associated with the tab bar controller)

enter image description here