MFMailComposeViewController внешний вид setTintColor теряется iOS 7

Этот вопрос для Xcode 5 под управлением iOS 7 и супер странный. Я пытаюсь установить все цвета текста UInavigation и UIBarButtonItem на белый.

Таким образом, в моем делегате запуска приложения я установил код как.

- (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.

Как я могу это исправить?

 

Ответы на вопрос(1)

Ваш ответ на вопрос