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