获取用户输入的电子邮件地址
是否可以获取用户输入的电子邮件地址?
我知道可以设置电子邮件地址,但没有方法获取电子邮件地址。
有什么已知的解决方案吗?
Is it possible to get the email address which the user has entered?
I know it's possible to set the email address but there is no method to get one.
Is there any know solution for that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据文档,没有。
我提到的其余内容是为了回答问题,但我不建议您这样做,因为这可能会让您的应用被商店拒绝。
MFMailComposeViewController
的设置方式可能是toRecipients
在内部实现为@property
。如果是这种情况,您可能可以这样做:如果这不起作用,您可能会开始寻找方法来内省 viewController 的
_internal
ivar,或者可能只是自己遍历视图层次结构,直到找到你在寻找什么。According to the documentation, there is not.
The remaining stuff I mention for the sake of answering the question, but I don't recommend that you do this, because it's likely to get your app rejected from the store.
It's possible that
MFMailComposeViewController
is set up in such a way that thetoRecipients
is implemented internally as an@property
. If that's the case, you can probably do something like:If that doesn't work, you could maybe start finding ways to introspect the viewController's
_internal
ivar, or maybe just walk the view hierarchy yourself until you find what you're looking for.