Sudhakar
Sudhakar

Reputation: 1517

Disable/Enable Send button in mailComposeController

How to disable/enable the send button in mailComposeController. I want disable/enable the send button by using through programmatically.Is it passable? enter image description here

Can any one help me.

Thank you...

Upvotes: 0

Views: 702

Answers (4)

Ahmed Z.
Ahmed Z.

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

Manu
Manu

Reputation: 4750

It's default functionality that if the To address field is blank then send button is DISABLE..

Upvotes: 0

iEinstein
iEinstein

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

Deepesh Gairola
Deepesh Gairola

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.

http://davidjhinson.wordpress.com/2010/11/24/changing-the-navigation-bar-with-mfmailcomposeviewcontroller/

Upvotes: 0

Related Questions