如何在模拟器中测试 MFMailComposeViewController [英] how to test MFMailComposeViewController in simulator

查看:72
本文介绍了如何在模拟器中测试 MFMailComposeViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 iphone 模拟器中测试从 MFMailComposeViewController 发送电子邮件?

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

推荐答案

不,你不能在模拟器上测试它...(我的意思是你的邮件不会被发送).我们将能够测试有限的东西,比如:视图将如何,当用户点击取消按钮时会发生什么......

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...

要测试邮件是否已送达,您必须使用设备.设备应在您的设置中配置一些邮件(例如:gmail).

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.

这篇关于如何在模拟器中测试 MFMailComposeViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆