1

I essentially want to do this. But it doesn't seem to work on iOS 6.

I have a UITabBarController that displays its More option. I want to show custom images for that item because I have customized the tab bar. But giving self.moreNavigationController.tabBarItem a new value does nothing. Neither does assigning the existing property new images. Is there a way to accomplish this? It would seem pretty weird to have the ability to customize the tab bar and all the items except for the More item...

Community
  • 1
  • 1
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145

1 Answers1

2

Apparently I was doing something wrong. It works fine. In viewWillAppear I'm doing this:

UITabBarItem *doneItem = [[[UITabBarItem alloc]init]autorelease];
doneItem.title = @"MyMore";
[doneItem setFinishedSelectedImage:[UIImage imageNamed:@"more_selected"]
          withFinishedUnselectedImage:[UIImage imageNamed:@"more"]];
self.moreNavigationController.tabBarItem = doneItem;
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145