Take the 2-minute tour ×

I am currently using the storyboard interface builder to design my GUI.

My structure looks like following in storyboard

-> Navigation Controller -> Tab Bar Controller -> SomeViewController
                                               -> AnotherViewController

Navigation Bar and Tab Bar appears fine in the ViewControllers, and the titles are set and visible in the editor, but in simulation the titles disappear.

How do i resolve this problem?

FYI: Navigation Controller and Tab Bar Controller are not bound to any Custom Class.

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted
self.navigationController.navigationBar.topItem.title = @"YourTitle";

Simply put that in viewDidAppear in your ViewControllers.

share|improve this answer
add comment

Also You can use this code .


put inside viewDidAppear or viewWillAppear

share|improve this answer
add comment

Your Answer


