What I already found is
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto:"]];
But I just want to open the Mail app not only a composer view. Just the mail app in its normal or last state.
Any ideas?
What I already found is
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto:"]];
But I just want to open the Mail app not only a composer view. Just the mail app in its normal or last state.
Any ideas?
Swift 5 version:
In Swift:
Swift 4 / 5 to open default Mail App without compose view. If Mail app is removed, it automatically shows UIAlert with options to redownload app :)
If you are using Xamarin to developer an iOS application, here is the C# equivalent to open the mail application composer view:
Expanding on Amit's answer: This will launch the mail app, with a new email started. Just edit the strings to change how the new email begins.