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?
Apparently Mail application supports 2nd url scheme -
message://
which ( I suppose) allows to open specific message if it was fetched by the application. If you do not provide message url it will just open mail application:You can open the mail app without using opening the compose view by using the url scheme
message://
Swift version of the original Amit's answer:
Swift 2:
Swift 3.0: