how to test MFMailComposeViewController in simulator

前端 未结 3 1009
忘了有多久
忘了有多久 2021-01-25 17:38

Is there a way to test sending emails from MFMailComposeViewController in iphone simulator ?

3条回答
  •  别那么骄傲
    2021-01-25 18:18

    No you can't test it on simulator...(I mean your mail won't be delivered).we will be able to test limited things like: how the view will be,what happens when the user clicks on cancel button etc...

    To test whether, the mail was delivered or not, you have to use a Device. The device should be configured with some mail(ex:gmail) in your settings.

提交回复
热议问题