Reputation: 1517
How to disable/enable the send button in mailComposeController. I want disable/enable the send button by using through programmatically.Is it passable?
Can any one help me.
Thank you...
Upvotes: 0
Views: 702
Reputation: 2337
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: 1
Reputation: 4750
It's default functionality that if the To
address field is blank then send button is DISABLE..
Upvotes: 0
Reputation: 2100
One way is that you prevent the user to insert text in To: field but it wouldn't be the proper solution
Upvotes: 0
Reputation: 1242
Not sure if it is even possible or not but you can customize navigation bar in case you want to toggle Send
mail button. Following article can be useful.
Upvotes: 0