如何像MFMailComposer一样创建UITextField? [英] How to create a UITextField like MFMailComposer has?

查看:109
本文介绍了如何像MFMailComposer一样创建UITextField?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个像UITextField这样的MFMailComposer,就像我们输入一个电子邮件地址一样,它转换成蓝色圆形按钮就像形状一样。我不想使用Three20的MailComposer。我想创建自己的。任何想法如何实现这一目标?或者如果已经有UITextField或其他任何控件,请告诉我。

I want to create a MFMailComposer like UITextField like when we type an email address it converted into blue round button like shape. I do not want to use Three20's MailComposer. I want to create my own.Any idea how to achieve this? or if there is already a UITextField or whatever control is out there please let me know.

编辑:我已经检查了three20的TTCatalog演示。它有我想要的所有东西,除了一些像我手动输入电子邮件地址时它没有转换成蓝色按钮。我也想用自己的方法发送邮件,因为我正在对邮件进行加密。我想获取在To字段中输入的所有电子邮件地址,我想要一个像MFMailComposer一样的Cc / Bcc字段。

I've checked three20's TTCatalog demo. And It has all the things I want except a few like when I type an email address manually it's not converted into the blue button.Also I want to send mail using my own methods because I'm doing encryption of message. And I want to get all the email addresses entered in the To field and I want a Cc/Bcc field like MFMailComposer has.

推荐答案

查看 TITokenFieldView - 您可以根据需要使用/适应

Check out TITokenFieldView - you may be able to use/adapt for your needs

这篇关于如何像MFMailComposer一样创建UITextField?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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