[英]how can i change the navigation bar of MFMailComposeViewController?
i want to change the navigation bar of MFMailComposeViewController to black color. 我想将MFMailComposeViewController的导航栏更改为黑色。
how can i change. 我该如何改变。
Note that MFMailComposeViewController
inherits from UINavigationController
so it also has navigationBar
property. 请注意, MFMailComposeViewController
继承自UINavigationController
因此它也具有navigationBar
属性。
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.navigationBar.barStyle = UIBarStyleBlack;
I know this post is quite dated but for someone who might find it useful, try: 我知道这篇文章过时了,但是对于可能会觉得有用的人,请尝试:
MFMailComposeViewController *mailController = [MFMailComposeViewController new];
[mailController.navigationBar setTintColor:[UIColor colorWithHue:240.0f/359.0f
saturation:85.0f/100.0f
brightness:60.0f/100.0f
alpha:0.0f]];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.