I have a button that when it is clicked, It will let us choose between default mail app, yahoo mail and Safari to read inbox. Currently i'm using:
NSURL* mailURL = [NSURL URLWithString:@"mailto:abc@gmail.com&subject=My%20Subject%20Line&body=Hello%20Email!"];
[[UIApplication sharedApplication] openURL: mailURL];
This code always open the compose screen. I don't want it be shown. I just want to open inbox or just only open the mail app. How can I implement that? Thank you very much!
UPDATE
I know how to open app without compose screen now.
If you want to open default mail app, use:
NSURL* mailURL = [NSURL URLWithString:@"message://"];
If you want to open Gmail, use:
NSString *gmailUrl = @"googlegmail://";
Now the problem is: How to show a dialog to choose between them