views:

136

answers:

0

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];