Launch Apple Mail App from within my own App?

后端 未结 15 2320
心在旅途
心在旅途 2020-11-29 01:59

What I already found is

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"mailto:\"]];

But I just want to open the Mail ap

15条回答
  •  忘掉有多难
    2020-11-29 02:22

    Run your app on a real device and call

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"your@email.com"]];
    

    Note, that this line takes no effect on simulator.

提交回复
热议问题