2009-05-04 7 views

Répondre

3

Vous pouvez les ajouter à la fonction 'applicationDidFinishLaunching:' dans le fichier appDelegate.m.

par exemple:

NSInteger index = 0; 
while(index < 4){ // 4 is the number of tabbar items 
    UINavigationController *navCtrlr = (UINavigationController*)[[tabBarController viewControllers] objectAtIndex:index]; 
    UITabBarItem *tabBar = (UITabBarItem *) navCtrlr.tabBarItem; 
    if(index == 0){ 
     tabBar.image = [UIImage imageNamed:@"home-item.png"]; 
     tabBar.title = @"home"; 
    } 
    ... 
    index ++; 
} 
Questions connexes