Add and edit a UITabBarItem in Interface Builder

Using Interface Builder after creating a new project and specifying Tabbed Application, I have two tab bar items. I would like to add more items, but I don't see how to do it in IB. Also, the tab bar items which I see I cannot select nor edit. How is that accomplished?

Answered by junkpile in 69402022

You just click on it in the simulated tab bar at the bottom of the view controller you added. Under Simulated Metrics "Bottom Bar" should be "Inferred" and there should be a tab bar item in the middle. It's possible if it has no title or image you can't see it; just click in the middle of the tab bar. Or click on it in the document outline (it should be shows with a blue star under the child view controller).

Add a view controller to the storyboard.

Add a relationships segue from the tab bar controller to the new view controller.

Set the title of the new view controller's Tab Bar Item.

Thanks, I got that far, but how do I select the tab bar item to edit its title and image?

Accepted Answer

You just click on it in the simulated tab bar at the bottom of the view controller you added. Under Simulated Metrics "Bottom Bar" should be "Inferred" and there should be a tab bar item in the middle. It's possible if it has no title or image you can't see it; just click in the middle of the tab bar. Or click on it in the document outline (it should be shows with a blue star under the child view controller).

thanks, that works. I was clicking on the items in the tab bar controller.

Add and edit a UITabBarItem in Interface Builder
 
 
Q