我尝试在我的应用程序中使用 ABUnknownPersonViewController,但它只有英文。我认为如果 AddressBookUI 以系统语言自动显示会更好。有没有办法用其他语言显示它或者我需要制作自己的控制器?
更新:代码
ABRecordRef aContact = ABPersonCreate();
ABMutableMultiValueRef phoneNumbers = ABMultiValueCreateMutable(kABMultiStringPropertyType);
ABMultiValueAddValueAndLabel(phoneNumbers, (__bridge CFStringRef)labelNumber.text, kABPersonPhoneMainLabel, NULL);
ABRecordSetValue(aContact, kABPersonPhoneProperty, phoneNumbers, nil);
ABUnknownPersonViewController *picker = [[ABUnknownPersonViewController alloc] init];
picker.unknownPersonViewDelegate = nil;
picker.displayedPerson = aContact;
picker.allowsAddingToAddressBook = YES;
picker.allowsActions = YES;
[self.navigationController pushViewController:picker animated:YES];
[picker release];
CFRelease(phoneNumbers);
CFRelease(aContact);