isa*_*thg 4 iphone xcode cocoa-touch objective-c
我正在从我的iPhone应用程序发送电子邮件.一切正常,但我想改变标题栏的颜色,从蓝色到黑色,背景颜色从白色变为黑色.此外,所有文字为白色.
我该怎么办?有人请帮忙!
我用了下面的代码:
- (IBAction)sendMail{
MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc]init];
mailComposer.mailComposeDelegate = self;
if([MFMailComposeViewController canSendMail]){
[mailComposer setToRecipients: [NSArray arrayWithObjects:@"myemail@gmail.com",nil]];
[mailComposer setSubject: nil];
[mailComposer setMessageBody: nil isHTML:NO];
[self presentModalViewController:mailComposer animated: YES];
}
Run Code Online (Sandbox Code Playgroud)
War*_*ior 11
要更改导航栏颜色,请尝试此操作
[[mailComposer navigationBar] setTintColor:[UIColor blackColor]];
Run Code Online (Sandbox Code Playgroud)
我不知道其他两个.
祝一切顺利.
| 归档时间: |
|
| 查看次数: |
3787 次 |
| 最近记录: |