2012-04-10 10 views
0

アイコンに画像を挿入するためにタブバー項目の画像をカスタマイズする必要がありますが、どうすればいいですか? 友人から、新しいxibを作成し、それをカスタマイズして新しいタブバー項目をカスタマイズする必要があると聞きました。 それは本当ですか?UITABBAR IOS 5.0をカスタマイズするには?

ありがとう!

+0

は、カスタムのために、これらのサンプルを見て、ファイル

- (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"]]; } 

を助けるかもしれない

appdelegate.m

に以下の方法を置きますタブバーの項目 –

+0

checここであなたのソリューションかもしれない答えのkをhttp://stackoverflow.com/questions/9976839/how-to-set-uitabbarcontroller-to-view/9977322#9977322 – Hiren

答えて

関連する問題