Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tex-Twil

macrumors 68030
Original poster
May 28, 2008
2,501
15
Berlin
Hi,
I use the Appearance to customise my tabbar and I set the "setSelectionIndicatorImage". This works fine. The problem is that when I reorder the tabs positions using the "More" edit button, the background of a selected tab is not showing up anymore. Instead, the default selection background is shown.

Here is how I customise it:

Code:
    UITabBar *tabBarAppearance = [UITabBar appearance];
    [tabBarAppearance setSelectionIndicatorImage:[theme tabBarSelectionIndicator]];


Here is the result (white background of the selected tab)

Screen%20Shot%202012-08-03%20at%207.51.59%20PM.png


Now I reordered the tabs and a new tab is here but the background is not white

Screen%20Shot%202012-08-03%20at%207.53.47%20PM.png


If I restart the app, the background show up correctly

Screen%20Shot%202012-08-03%20at%207.55.06%20PM.png


What do I have to do so that the new tab items have also the custom background?

cheers
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.