ViewController电子邮件发送到iPhone中的字段限

ViewController电子邮件发送到iPhone中的字段限

本文介绍了MFMailComposeViewController电子邮件发送到iPhone中的字段限制40的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MFMailComposeViewController发送电子邮件.我的是通用应用,电子邮件的toField具有2个邮件ID.

I am using MFMailComposeViewController for sending emails. Mine is universal app and toField of email is having 2 mail ids.

(1)每个电子邮件ID的长度约为30个字符.在iPhone中,我将其视为"+2收件人". (在iPad中,可以可视化toField中的电子邮件ID.)当我用Google搜索时,发现toField中的文本限制为40个字符的限制.如何避免这个问题.

(1) Each email id is around 30 characters long. In iPhone I see it as "+2 recipients". (In iPad able to visualize the email ids in toField.) And when I Googled, found that there is a restriction of 40 characters of text limit in toField. How to avoid this problem.

(2)另外,如果我单击"+2收件人",它会显示电子邮件ID,但无法隐藏打开的小键盘.

(2) Also if I click on "+2 recipients" it is displaying the email ids but then not able to hide the keypad which is opened.

推荐答案

您无法控制这些类型的设置. MFMailComposeViewController是适用于您的应用程序的即发即弃风格的电子邮件解决方案,它提供了用户熟悉的界面.

You have no control over those types of settings. The MFMailComposeViewController is a fire and forget style email solution for your application that provides an interface your users are familiar with.

40个字符的限制是指缩短之前的限制,您的电子邮件不会被截断.您将无法取消该限制.就是这样.如果要创建自定义电子邮件表单,则必须构建自己的IMAP框架才能使用它.

The 40 character limit refers to the limit before they are shortened, your emails aren't being cut off. You won't be able to lift that limit. It is what it is. If you want to create a custom email form you'll have to build your own IMAP framework to go with it sadly.

安全性是iOS的高度优先事项,因此,用户的电子邮件地址和内容之类的东西受到严密保护.

Security is a high priority on iOS and as such, things like the user's email addresses and content is closely guarded.

这篇关于MFMailComposeViewController电子邮件发送到iPhone中的字段限制40的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 07:15