实现了类似Iphone标准地址View的View
无论如何,有没有办法在电子邮件撰写屏幕中实现类似 iphone 地址视图的视图。
我尝试过标准 UIView,它包含几个 UILabelView,当用户触摸它时,我会将 UILabelView 更改为 UIButtonView,然后是 UITextFieldView, 但是,它并不完全像 Iphone 标准地址输入视图一样工作,而且当 UITextField 为空时我无法检测到 [back space]。
有什么好主意吗?
Is there anyway to implement a view like iphone address view in email compose screen.
I have tried standard UIView which holds a couple of UILabelView, when User touch it, I will change UILabelView to UIButtonView followed by a UITextFieldView,
however, it does not work exactly as Iphone standard address input view and plus I can not detect [back space] when UITextField is empty.
Any good ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
怎么样:
1:将
Addressbook.framework
和AddressbookUI.framework
添加到您的项目中。2:在您的自定义
UIViewController
中,让它继承ABPeoplePickerNavigationControllerDelegate
来响应事件。3:调用setupAddressbookView初始化流程。
4:让用户完成剩下的事情
How about this:
1: Include the
Addressbook.framework
andAddressbookUI.framework
to your project.2: in your custom
UIViewController
, have it inherit fromABPeoplePickerNavigationControllerDelegate
to respond to the events.3: Call setupAddressbookView to initialize the process.
4: Let the user do the rest
您可以考虑查看 Three20 库。
它包含一个类似于电子邮件撰写视图的控件,包括带有标记化名称/地址的
To:
字段。您可以使用它,也可以查看源代码以帮助您编写自己的代码。
You might consider having a look at the Three20 library.
It contains a control that resembles the Email compose view, including the
To:
field with the tokenised names/addresses.You could either use it, or look at the source to help you write your own.