3


After clicking the cancel button of MFMailComposeViewController action sheet of save draft or not is generated.
enter image description here


I dont want this action sheet how can i achieve that?
thanks in advance.

Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167
KDeogharkar
  • 10,939
  • 7
  • 51
  • 95
  • AFAIK, this does nothing in Simulator, draft will be saved in mail application. Refer the answer here: http://stackoverflow.com/a/3939905/876283 – iNoob May 30 '12 at 05:51
  • 1
    I think you may not be able to change it as `MFMailComposeViewController` is a framework and you may not play with it.. Also chances of app getting rejected are quite as Apple is not gonna like it.. – rohan-patel May 30 '12 at 05:52
  • @iNoob : you misinterpreted the question I suppose.. :-) – rohan-patel May 30 '12 at 05:52
  • @anonymous, not entirely :D, the answer i linked had the line "It is not possible to alter the options available in this action sheet, as it is entirely controlled by the mail compose view controller." Hope OP gets it. – iNoob May 30 '12 at 05:55

1 Answers1

7

From documentation

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.

First line answers your question I think.

Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167