ios - How to change style of tabbar in iphone sdk -


i developing application in need bit customize tabbar have attached image below. in image home tabbar item show want is, tried couldn't change highlighted area show in first image , getting result shown in second image. want in first image need crop whole tabbar item image in home button or need change color of selected area?first image

second image

thanks advance guidance.

try this,

didfinishlaunchingwithoptions

    uiimage *selectedimage0 = [uiimage imagenamed:@"home_sel.png"];     uiimage *unselectedimage0 = [uiimage imagenamed:@"home.png"];      uiimage *selectedimage1 = [uiimage imagenamed:@"weight_sel.png"];     uiimage *unselectedimage1 = [uiimage imagenamed:@"weight1.png"];      uiimage *selectedimage2 = [uiimage imagenamed:@"rewards_sel.png"];     uiimage *unselectedimage2 = [uiimage imagenamed:@"rewards.png"];      uiimage *selectedimage3 = [uiimage imagenamed:@"menu_sel.png"];     uiimage *unselectedimage3 = [uiimage imagenamed:@"menu.png"];      uiimage *selectedimage4 = [uiimage imagenamed:@"shop_sel.png"];     uiimage *unselectedimage4 = [uiimage imagenamed:@"shop.png"];      uiimage *selectedimage5 = [uiimage imagenamed:@"account_sel.png"];     uiimage *unselectedimage5 = [uiimage imagenamed:@"account.png"];      uitabbar *tabbar = tabbarcontroller.tabbar;      uitabbaritem *item0 = [tabbar.items objectatindex:0];     uitabbaritem *item1 = [tabbar.items objectatindex:1];     uitabbaritem *item2 = [tabbar.items objectatindex:2];     uitabbaritem *item3 = [tabbar.items objectatindex:3];     uitabbaritem *item4 = [tabbar.items objectatindex:4];     uitabbaritem *item5 = [tabbar.items objectatindex:5];      [item0 setfinishedselectedimage:selectedimage0 withfinishedunselectedimage:unselectedimage0];     [item1 setfinishedselectedimage:selectedimage1 withfinishedunselectedimage:unselectedimage1];     [item2 setfinishedselectedimage:selectedimage2 withfinishedunselectedimage:unselectedimage2];     [item3 setfinishedselectedimage:selectedimage3 withfinishedunselectedimage:unselectedimage3];     [item4 setfinishedselectedimage:selectedimage4 withfinishedunselectedimage:unselectedimage4];     [item5 setfinishedselectedimage:selectedimage5 withfinishedunselectedimage:unselectedimage5];  window.rootviewcontroller=tabbarcontroller; 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -