How do I set an ABPeoplePickerNavigationController's prompt?
Posted
by mverzilli
on Stack Overflow
See other posts from Stack Overflow
or by mverzilli
Published on 2010-03-13T15:24:41Z
Indexed on
2010/03/13
16:25 UTC
Read the original article
Hit count: 273
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];
© Stack Overflow or respective owner