I try to write a button that would send a message by email, but the following error appears:

thread 1 signal sigabrt

I read that this could be related to the UIViewController , but did not understand where and how to find it.

throws over the court

Link to the github project.

  • and what to do with this screen? it would be necessary text oshbiki - Max Mikheyenko

1 answer 1

The controller is not created because the device on which you run the application (simulator) does not support sending emails. To check whether sending emails is supported before proceeding

if (![MFMailComposeViewController canSendMail]) { NSLog(@"Mail services are not available."); return; } 
  • And how then to make that support? - rem0t
  • 2
    Get a job in apple and rewrite the simulator :) - Max Mikheyenko