sokna_hay
sokna_hay

Reputation: 11

how to access on button send, cancel in MFMailComposeViewController

I want to set isAccessibilityElement to button send, cancel, delete draft, save draft but I cannot access to those button. I have already tried:

mailComposer.navigationBar.topItem.isAccessibilityElement=YES;

and

mailComposer.navigationBar.topItem.rightBarButtonItem.isAccessibilityElement=YES;

Please help!

Upvotes: 0

Views: 803

Answers (1)

Evol Gate
Evol Gate

Reputation: 2257

You don't have access to Send and Cancel button of MFMailComposeViewController. These buttons and their action are pre-defined and are not meant to be changed.

From Apple Docs:

*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.*

Upvotes: 4

Related Questions