According to Apple docs
I am trying to set up custom finished selected and unselected images on a UITabBarItem like this:
... DetailViewController *vc1 = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:nil]; UITabBarItem *vc1i = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemTopRated tag:100]; [vc1i setFinishedSelectedImage:[UIImage imageNamed:@"tab_bar_item_selected.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"tab_bar_item_normal.png"]]; [vc1 setTabBarItem:vc1i]; ...
Basically what happens, the TabBar loads just fine, it just completely ignores the setting of the tab bar item.
I focus on iOS5 +
Images are transparent PNG 30x30 and exist in the project. I canβt understand what Iβm looking at here, but there must be something!
This is called in the tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath method tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath , ala Ray Wenderlich tutorial
Does anyone have any ideas?
Thanks!
taber source share