2012-04-10 5 views
0

Ich muss die Bilder in Tabbar-Elemente anpassen, um ein Bild in mein Symbol einzufügen, wie kann ich tun? Ich habe von meinem Freund gehört, dass ich ein neues Xib erstellen und ein neues Tabbar-Element erstellen soll. Stimmt es?Wie wird UITABBAR IOS 5.0 angepasst?

vielen dank!

+0

haben einen Blick auf diese Proben für benutzerdefinierte Tabbar-Elemente –

+0

chec k out die Antwort hier ist es vielleicht Ihre Lösung http://StackOverflow.com/Questions/9976839/How-to-set-uitabbarcontroller-to-view/9977322#9977322 – Hiren

Antwort

0

einfach den unten Methode in

appdelegate.m

Datei

- (void)customizeAppearance 

{ 

// Costomise UITabBar 

// Note you can also specify “finished” and “unfinished” images if you wish to modify the manner in which the selected & unselected images appear. 

UIImage *tabBackground = [[UIImage imageNamed:@"tab_bg"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)]; 

[[UITabBar appearance] setBackgroundImage:tabBackground]; 

[[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"tab_select_indicator"]]; 

} 

das Sie helfen können Please find much more on this site