I do this in a UIViewController for one of my tabs:
self.title = @"Welcome";
However, it overwrites everything I have for tabBarItem. I tried:
self.tabBarItem.title = @"Home";
and
[self.tabBarItem initWithTitle:@"Home" image:[UIImage imageNamed:@"iconHome.png"] tag:0];
But still self.title overwrites tabBarItem, regardless of whether I try to use the last two code snippets after the header has been set. The code even works without errors, but self.tabBarItem.title or initWithTitle do nothing?
iphone uinavigationcontroller
runmad Oct 08 '09 at 21:53 2009-10-08 21:53
source share