この回答に従って、バーアイテムのテキストの色を白に変更しましたが、タブバーアイテムが6つあり、システムボタン[詳細]アイテムを取得してテキストの色を変更できません。
この[詳細]ボタンのテキストの色を白に変更するにはどうすればよいですか?どうも。
私のコード:
for (UITabBarItem* item in self.tabBar.items)
{
NSLog(@"title:%@",item.title); // only get my items
[item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIFont fontWithName:@"AmericanTypewriter" size:11.0f], UITextAttributeFont,
[UIColor whiteColor], UITextAttributeTextColor,
[UIColor clearColor], UITextAttributeTextShadowColor,
[NSValue valueWithUIOffset:UIOffsetMake(0.0f, 1.0f)], UITextAttributeTextShadowOffset,
nil] forState:UIControlStateNormal];
}