这是我用来调用人员选择器的代码,但提示标签文本不会改变:
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";
关于iphone - 如何设置 ABPeoplePickerNavigationController 的提示?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2438852/