主要/默认 ABMultiValue 属性?
我需要用户输入他们的姓名、电话号码和电子邮件地址。为了帮助他们,如果他们输入这三个中的任何一个,我想在他们的地址簿中查找该值并填充其余字段。例如,如果他们输入姓名,我会查找他们,并填充电子邮件和电话号码字段。
然而,电子邮件和电话号码是 ABMultivalue 属性,大多数人拥有多个电子邮件和电话号码。 iPhone 地址簿是否具有 ABMultiValue 属性的主要值或默认值的概念?
谢谢!
I need a user to enter their name, phone number, and email address. To help them out, if they enter any one of the three, I want to look up that value in their Address book and populate the remaining fields. For example, if they enter their name, I'll look them up, and populate the email and phone number fields.
Email and phone numbers are ABMultivalue properties, however, and most people have more than one email and phone. Does the iPhone address book have the concept of a primary or default value for those properties that are ABMultiValue?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有主要/默认值。我只是假设第一个值是主要/默认值。对于我的大多数联系人来说都是如此。否则,如果有多个值,您可以让用户选择他们想要的值,但您需要制作一个良好的 UI 来支持它,因此第一种选择要简单得多。
There is no primary/default value. I would simply assume that the first value is the primary/default value. It's true for most of my contacts. Otherwise if there are multiple values you could let the user choose the one they want, but you need to make a good UI to support it, so the first alternative is much simpler.