UITabBarItem or UIBarItem

#1

Hi, there’s been a confusion as to whether to use UITabBarItem or UIBarItem when setting the title and image for the TabBarItem property.
Because both method works I’m wondering if im missing out something here.


        UIBarItem *tbi = self.tabBarItem;
        
        //Give it a label
        tbi.title = @"Reminder";
        
        //Give it an image
        UIImage *i = [UIImage imageNamed:@"Time.png"];
        tbi.image = i;

or

[code]//Get the tab bar item
UITabBarItem *tbi = self.tabBarItem;

    //Give it a label
    tbi.title = @"Reminder";
    
    //Give it an image
    UIImage *i = [UIImage imageNamed:@"Time.png"];
    tbi.image = i;[/code]
#2

Hi,

I had the same question, and found the answer here:
viewtopic.php?f=487&t=8124

ChristianKeur also explains it a little here:
viewtopic.php?f=487&t=8240

The short version is that they made a consistency mistake, and both are fine.