hap497 hap497 - 5 months ago 37
Swift Question

How can I launch an email client on ios using Swfit

In Android, I can launch an email client from my android application using its Intent mechanism.
In ios, how can I launch its email client from my ios application using Swift?

Thank you.

let url = NSURL(string: "mailto:jon.doe@mail.com")

Note that this works only on a device, not in the simulator.