如何更改“从我的 iPhone 发送”的样板文件MFMailViewController 消息正文中的文本?
我正在使用 MFMailComposeViewController 从 iPhone v3.0 应用程序中发送电子邮件。我以编程方式创建消息正文文本并在显示选择器之前显示它。
我的邮件正文底部是字符串“从我的 iPhone 发送”。无论如何可以修改此文本或阻止其出现吗?粗略地查看 MFMailComposeViewController 类参考并快速谷歌搜索并没有发现任何结果。
提前致谢。
I'm using the MFMailComposeViewController to send an email from within an iPhone v3.0 application. I programmatically create the message body text and display it before showing the picker.
At the bottom of my message body text is the string "Sent from my iPhone." Is there anyway to modify this text or prevent it from appearing? A cursory review of the MFMailComposeViewController Class Reference and quick Googling doesn't turn up anything.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,这是一个可由用户指定的全局邮件设置。默认情况下,签名设置为“从我的 iPhone 发送”,但可以在设置 - 邮件、通讯录、日历 - 签名中更改
As far as I know, this is a global mail setting that can be specified by the user. By default the signature is set to "Sent from my iPhone", but it can be changed in Settings - Mail,Contacts,Calendars - Signature
如果您指的是 iPhone 模拟器中的签名,则默认情况下它就在那里。没有 Mail.app,因此没有邮件设置来禁用它。您实际上也无法发送电子邮件,但很高兴他们至少启用了 MPMailComposeViewController。如果您使用 MFMailComposeViewController,用户在自己设备上的签名将显示在自定义应用程序消息的底部。
If you are referring to the signature in the iPhone Simulator, it's just there by default. There's no Mail.app and therefore no settings for Mail to disable it. You can't actually send an email either, but it's just nice that they at least enabled MPMailComposeViewController. If you use MFMailComposeViewController, the user's signature on their own device will display in the bottom of your custom app message.
没有实际的编程方式来做到这一点。
它正在使用“设置”中的签名。
要删除手机上的签名,请打开
设置
应用,输入签名
,然后点击列表中的签名
选项,如图所示。系统将提示您一个文本字段,您可以将其留空以删除签名:
您可以使用预设文本以编程方式添加某种签名:
它看起来像这样,假设用户已在“设置”中删除了他的签名,否则签名将位于
此处的一些用户元数据
:No actual programmatic way to do this.
It is using signature from Settings.
To remove the signature on your phone, open
Settings
app, typeSignature
and tapSignature
option from the list, as in image.You will be prompted a textfield which you can leave empty to remove the signature:
You can add some kind of signature programmatically, using preset text:
and it will look like this, assuming user has deleted his signature in Settings, otherwise signature will be below
Some user metadata here
: