Error "no Objective-c class named 'b'MFMailComposeViewController"
-
@JonB and @omz I've a strange problem. I've used objc mail of omz doc and yours once, without problem,
But my next tests give all the same error message, even after a restart of Pythonista and e
ven after a reboot of my iPad.Error "no Objective-c class named 'b'MFMailComposeViewController"
-
This should fix the error you're seeing:
objc_util.load_framework('MessageUI')
In previous versions of Pythonista, this wasn't necessary because Pythonista itself linked the MessageUI framework, but that's no longer the case, and I forgot to update the sample code accordingly.
-
Thanks a lot, it works
In the @jonb version (attachments), the cancel button does not work...
Line missingmail_vc.setMailComposeDelegate_(delegate)
-
@omz In the @jonb example, allowing attachments, we need to close the ui.view before presenting the mail view. Is that really always mandatory?