1

このコードから元の色で表示されますどうすれば別の色に変更できますか?多分それはオーバーライドする必要がありますか?

MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init];
    mail.mailComposeDelegate = self;
    if ([MFMailComposeViewController canSendMail]) {
        [mail setToRecipients:[NSArray arrayWithObjects:@"me@gmail.com",nil]];
        [mail setSubject:@"support"];
        [mail setMessageBody:@"enter your message here" isHTML:NO];
        [self presentModalViewController:mail animated:YES];
    }
4

3 に答える 3

2

私はこれを行っていないので、適切な注意を払ってこの回答を取ります。

MFMailComposeViewControllerから継承しUINavigationControllerます。つまり、navigationBarプロパティがあります。ナビゲーションバーを取得したら、そのtintColorプロパティを変更できます。

于 2010-03-08T08:57:54.147 に答える
2

実際、iPhone SDK では、MFMailComposeViewController の外観を変更することは禁止されています。ドキュメントから(ここ):

Important: The mail composition interface itself is not customizable
and must not be modified by your application. In addition, after
presenting the interface, your application is not allowed to make 
further changes to the email content. The user may still edit the
content using the interface, but programmatic changes are ignored. 
Thus, you must set the values of content fields before presenting 
the interface.

ごめん...

于 2010-03-10T21:12:07.337 に答える
0

Apple Docsの iOS の以降のバージョンでは、UIAppearance プロトコルを使用する必要があります

重要

このビュー コントローラーによって提示されるビュー階層を変更してはなりません。ただし、UIAppearance プロトコルを使用してインターフェイスの外観をカスタマイズできます。

于 2016-07-05T13:04:06.250 に答える