Этот вопрос предназначен для Xcode 5 под управлением iOS 7 и является супер странным. Я пытаюсь установить все цвета текста UInavigation и UIBarButtonItem в белый цвет.MFMailComposeViewController появление setTintColor теряется iOS 7
Так что в моем делете запуска приложения я установил код как.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIImage *NavigationPortraitBackground = [UIImage imageNamed:@"button_header_blue"];
// Set the background image all UINavigationBars
[[UINavigationBar appearance] setBackgroundImage:NavigationPortraitBackground forBarMetrics:UIBarMetricsDefault];
// Set the text appearance for navbar
[[UINavigationBar appearance] setTitleTextAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor,
[UIColor whiteColor], UITextAttributeTextShadowColor,
[NSValue valueWithUIOffset:UIOffsetMake(0, 0)], UITextAttributeTextShadowOffset,
[UIFont fontWithName:@"Helvetica Neue" size:21], UITextAttributeFont,
nil]];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor],
UITextAttributeTextColor,
[UIColor whiteColor],
UITextAttributeTextShadowColor,
nil];
[[UIBarButtonItem appearance] setTitleTextAttributes:attributes forState: UIControlStateNormal];
[[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
// Override point for customization after application launch.
return YES;
}
Если я запускаю «отправить почту» действие дважды - первый раз, когда я вижу UIBarButton элементы белого цвета. Я смотрю на него и нажимаю кнопку «Отмена» - второй раз я вижу, что все они серые и едва заметные, кроме названия. - Это происходит как в моем iPhone-симуляторе, так и в iPhone под управлением iOS 7.
как я могу это исправить?
Согласно Developer Support Apple: Это известная ошибка в прошивкой 7.0. – jasonjwwilliams