Reputation: 371
I insert a navigation controller in my project at the beginning of the work using editor->embed in->Navigation Controller
.
Now I realize that is better to insert a tab bar instead of the navigation controller, but I'm unable to remove it! The unembed item in the editor menu is always grey, each item i select...
How can I do this job?
Upvotes: 7
Views: 7690
Reputation: 174
"unembed" function is for unembedding the "stack" in stackView and not for "navigation controller" nor "tab bar controller". That's why the unembed item in the editor menu is always grey.
Upvotes: 1
Reputation: 892
Just select the navController in storyboard and delete it. Then you need to add a tab bar controller to it(you can do this same way as nav controller:Editor -> Embed In -> Tab Bar Controller) and wire it up with the view controllers as you require it. Hope this helps.
Upvotes: 6