Suppress "Save Draft" button in MFMailComposeViewController

I am using MFMailComposeViewController inside an iphone app and it works fine.

When I press the "Cancel" button, an action sheet with the options "Delete Draft" (red), "Save Draft"(white) and "Cancel"(black) is prompted.

I have two questions:

  • Is it possible to suppress the "Save Draft" button? I control programmatically the flow of information and will possibly loose the control, if a mail is pushed into the "Drafts" folder.
  • Is it possible to change the colors of the appearing buttons?

  • this not feasible because its functionality is default MFMailCompose class.So you can not change it.

    You can change only navigation bar and buttons tint color

    MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
    [[controller navigationBar] setTintColor:[UIColor colorWithRed:0.36 green:0.09 blue:0.39 alpha:1.00]];
    
    链接地址: http://www.djcxy.com/p/94542.html

    上一篇: 按操作表中的取消按钮,关闭邮件控制器视图

    下一篇: 在MFMailComposeViewController中抑制“保存草稿”按钮