How to make tabBar.title! = NavBar.title?

I have a tab bar and navigation bar. There is a tabular view in the navigation bar. The problem is that when I set the title to the tab bar in IB and then set the title as a table, the title of the tab bar changes to the title from the table view and I have the same title in the navigation bar and tab bar, but I I want to have different names.

How to set tab bar title to be different than in van bar?

+7
iphone
source share
2 answers

Try the following:

self.navigationController.navigationBar.topItem.title = @"Your Title"; 

This link also has a similar but different solution: does self.title set the navigationController and tabBarItem header? Why?

+24
source share
 self.navigationItem.title = "Your title" 
+1
source share

All Articles