How to create a UITextField like MFMailComposer has?

∥☆過路亽.° 提交于 2019-12-03 14:44:54

问题


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.

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


回答1:


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



来源:https://stackoverflow.com/questions/6196973/how-to-create-a-uitextfield-like-mfmailcomposer-has

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!