omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Error "no Objective-c class named 'b'MFMailComposeViewController"

    Pythonista
    2
    4
    2218
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cvp
      cvp last edited by cvp

      @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"

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp last edited by cvp

          Thanks a lot, it works
          In the @jonb version (attachments), the cancel button does not work...
          Line missing

          mail_vc.setMailComposeDelegate_(delegate)
          
          1 Reply Last reply Reply Quote 0
          • cvp
            cvp last edited by

            @omz In the @jonb example, allowing attachments, we need to close the ui.view before presenting the mail view. Is that really always mandatory?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors