Changing the title of a UITabBarItem without changing the view controller's title

Posted by qui on Stack Overflow See other posts from Stack Overflow or by qui
Published on 2010-06-09T14:48:52Z Indexed on 2010/06/09 14:52 UTC
Read the original article Hit count: 333

Filed under:
|
|

Hi

I wish to have it so the view controller's title is different to the tab bar item's title.

I have tried the following, inside viewDidLoad

[self setTitle:@"My title"];
[[self tabBarItem] setTitle:@"Search"];

But the call to the second function doesn't seem to work

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c