self.title sets navigationController and tabBarItem’s title? Why?

OK, I figured it out! Here’s what I am doing:

self.title = @"Title for TabBarItem"; // TabBarItem.title inherits the viewController's self.title
self.navigationItem.title = @"Title for NavigationBar";

the navigationBar would inherit self.title, unless otherwise set using self.navigationItem.title

Leave a Comment