开发者

Adding a list of email addresses to a UITextField

开发者 https://www.devze.com 2023-02-06 12:58 出处:网络
I have a UITextField that I want to display a pre-defined list of email addresses, then allow the user to select one or two before going to SendMail (MFMailComposeViewController).

I have a UITextField that I want to display a pre-defined list of email addresses, then allow the user to select one or two before going to SendMail (MFMailComposeViewController).

I have tried appending "\n\r" but it still displays in one line.

How do I get it to display a list of addresses? (Obj-C is ok, but I'm using Mono开发者_开发问答touch)


You will need a UITableView and not a UITextView. If you want to ship around cumbersome UITableView implementations, try Monotouch.Dialog (https://github.com/migueldeicaza/MonoTouch.Dialog).

René


I think you need to use a UITextView, as you are showing more than one of something.

0

精彩评论

暂无评论...
验证码 换一张
取 消