0
我没有看到一个答案,我的问题,所以我问它: 我目前使用的(无效)customizeappearance定制我的TabBar和导航栏的设计。该功能是否将我的应用仅限于基于iOS5的iPhone?如果没有,我的酒吧在所有设备上都可以看到一样吗?Customizeappearance兼容的iOS
在此先感谢。
这里是我使用的方法:
- (void)customizeAppearance
{
UIImage *tabBackground = [[UIImage imageNamed:@"bg_tab"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
[[UITabBar appearance] setBackgroundImage:tabBackground];
[[UITabBar appearance] setSelectionIndicatorImage:
[UIImage imageNamed:@"bg_tab_selected"]];
[[UITabBar appearance] setSelectedImageTintColor:[UIColor whiteColor]];
}
谢谢你的帮助。 在我的appDelegate我使用[self customizeAppearance]; 我编辑我的文章与我的方法的细节。 – johnson23 2012-02-05 16:56:48
好的,这些方法只适用于iOS5,所以您需要按照我添加到我的答案的链接中的建议。 – 2012-02-05 17:00:04
哇,这是完美的!感谢尼克,你让我的一天;) – johnson23 2012-02-05 17:11:11