¥È¥Ã¥×   ÊÔ½¸ º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

iPhone/UIKit/¥¹¥Ë¥Ú¥Ã¥È ¤ÎÊѹ¹ÅÀ

Top / iPhone / UIKit / ¥¹¥Ë¥Ú¥Ã¥È


*¥¿¥Ö¤ÎÇØ·Ê¿§Êѹ¹
#pre{{
    if ([[[self tabBarController] tabBar] respondsToSelector:@selector(setSelectedImageTintColor:)])
    {
        // iOS5¤Ç¤Ï¤³¤Á¤é¤Ç¥¿¥Ö¤ÎÇØ·Ê¿§Êѹ¹
        [[[self tabBarController] tabBar] setSelectedImageTintColor:[UIColor colorWithRed:0.4 green:0.837 blue:0.8 alpha:1.0]];
        [[[self tabBarController] tabBar] setTintColor:[UIColor colorWithRed:0.4 green:0.837 blue:0.8 alpha:1.0]];
        [[UITabBar appearance] setSelectedImageTintColor:[UIColor colorWithRed:0.4 green:0.837 blue:0.8 alpha:1.0]];
        [[UITabBar appearance] setTintColor:[UIColor colorWithRed:0.4 green:0.837 blue:0.8 alpha:1.0]];
    } else {
        // iOS4¤Ç¤Ï¤³¤Á¤é¤Ç¥¿¥Ö¤ÎÇØ·Ê¿§Êѹ¹
        CGRect frame = CGRectMake(0.0, 0.0, self.view.bounds.size.width, 48);
        UIView *v = [[[UIView alloc] initWithFrame:frame] autorelease];
        [v setBackgroundColor:[UIColor colorWithRed:0.4 green:0.837 blue:0.8 alpha:1.0]];
        [v setAlpha:1.0];
        [[[self tabBarController] tabBar] addSubview:v];
        [[[self tabBarController] tabBar] sendSubviewToBack:v];
    }
}}