I use MFMailComposeViewController so that users can send mail from my application without any problems. But I found that if I have an “iCloud” account installed on the device [MFMailComposeViewController canSendMail] returns 0.
If I delete the iCloud account, MFMailComposeViewController will resume. I have tried; by setting the default email account in the iOS settings to my gmail account, setting my iCloud account to @iCloud email (which I know because I can send mail from an email application using it).
Any ideas would be most appreciated.
EDIT
- I found that other applications do not have the same problem.
- When creating content for email, I used a lot of streams to retrieve data from UIDocument instances at the same time, I found that if I load documents sequentially, the problem does not occur.
source share