iPhone - ABPeoplePickerNavigationController:显示“电话”属性但不是铃声
使用下面的代码,我将调出一个人员选择器,以便用户可以选择电话或电子邮件地址。我已将可显示属性设置为电子邮件和电话,但“铃声”属性在电话组中可见。考虑到此人员选择器实例的目的,此处显示铃声选择绝对没有意义。有谁知道怎么去掉手机群里的吗?
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init]; NSArray *propertiesToShow = [NSArray arrayWithObjects:[NSNumber numberWithInt:kABPersonEmailProperty], [NSNumber numberWithInt:kABPersonPhoneProperty], nil]; [picker setDisplayedProperties:propertiesToShow]; [picker setPeoplePickerDelegate:self]; [self presentModalViewController:picker animated:YES]; [picker release];
Using the code below, I'm bringing up a person picker so the user can choose either a phone or an email address. I've set the displayable properties to Email and Phone, but the "Ringtone" property is visible in the phone group. Given the purpose of this instance of Person picker, the Ringtone choice makes absolutely no sense to display here. Anyone know how to get rid of it in the phone group?
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init]; NSArray *propertiesToShow = [NSArray arrayWithObjects:[NSNumber numberWithInt:kABPersonEmailProperty], [NSNumber numberWithInt:kABPersonPhoneProperty], nil]; [picker setDisplayedProperties:propertiesToShow]; [picker setPeoplePickerDelegate:self]; [self presentModalViewController:picker animated:YES]; [picker release];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论