MFMailComposeViewController bar background color not changing in iOS7

前端 未结 9 1503
情歌与酒
情歌与酒 2020-12-31 00:32

I\'m trying to change the background color of the MFMailComposeViewController in iOS7 but I cannot make it work.

I\'m

9条回答
  •  醉话见心
    2020-12-31 00:52

    For iOS8:

    NSDictionary *navbarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                                [UIColor whiteColor],UITextAttributeTextColor, 
                                                [UIColor blackColor], UITextAttributeTextShadowColor, 
                                                [NSValue valueWithUIOffset:UIOffsetMake(-1, 0)], UITextAttributeTextShadowOffset, nil];
    
    [[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];
    

    Or

    navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor yellowColor] forKey:UITextAttributeTextColor];
    

提交回复
热议问题