iOS UITabBarItem Image selected x消失 Xcode 6

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:0] setImage:[UIImage imageNamed:@"tabbar_trends_nomal"]];

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:0] setSelectedImage:[UIImage imageNamed:@"tabbar_trends_selected"]];

    

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:1] setImage:[UIImage imageNamed:@"tabbar_channel_nomal"]];

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:1] setSelectedImage:[UIImage imageNamed:@"tabbar_channel_selected"]];

    

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:2] setImage:[UIImage imageNamed:@"tabbar_message_nomal"]];

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:2] setSelectedImage:[UIImage imageNamed:@"tabbar_message_selected"]];

    

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:3] setImage:[UIImage imageNamed:@"tabbar_me_nomal"]];

    [(UITabBarItem*)[[[self tabBar] items] objectAtIndex:3] setSelectedImage:[UIImage imageNamed:@"tabbar_me_selected"]];

你可能感兴趣的:(iOS UITabBarItem Image selected x消失 Xcode 6)