如何设置ABPeoplePickerNavigationController的提示? [英] How do I set an ABPeoplePickerNavigationController's prompt?
本文介绍了如何设置ABPeoplePickerNavigationController的提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我用于调用人选择器的代码,但提示标签文字不会更改:
This is the code I'm using to call the people picker, but the prompt label text doesn't change:
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
picker.displayedProperties = [NSArray arrayWithObjects: [NSNumber numberWithInt:kABPersonEmailProperty], nil];
picker.navigationItem.prompt = @"Choose a contact to...";
[self presentModalViewController:picker animated:YES];
推荐答案
您可以更改标题:
picker.navigationBar.topItem.title = @"iPhone Contacts";
您可以更改提示符:
picker.navigationBar.topItem.prompt = @"iPhone Contacts";
这篇关于如何设置ABPeoplePickerNavigationController的提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文