Reputation: 2676
I have used MFMailComposeViewController
to implement email functionality in my app. It is working on the iPhone but not on the iPad. What can be the reason?
Thanks
Upvotes: 1
Views: 116
Reputation: 510
Sanity Check for mail sending
BOOL canSendmail = [MFMailComposeViewController canSendMail];
if (canSendmail) {
NSLog(@"EmailPhoto can send");
[self displayMailComposerSheet];
}
Upvotes: 0
Reputation: 10733
Maybe there is no email account set up on the iPad. Try to check that by using [MFMailComposeViewController canSendMail]
before presenting your view controller.
Upvotes: 2