我想直接打开ABPersonViewController。这是我的代码
ABAddressBookRef addressBook;
addressBook = ABAddressBookCreateWithOptions(NULL, NULL);
ABPeoplePickerNavigationController *peoplePicker = [[ABPeoplePickerNavigationController alloc] init];
peoplePicker.peoplePickerDelegate = self;
ABPersonViewController *picker = [[ABPersonViewController alloc] init];
picker.personViewDelegate = self;
picker.displayedPerson = (__bridge ABRecordRef)(name);
picker.displayedProperties = peoplePicker.displayedProperties;
picker.allowsActions = YES;
[peoplePicker pushViewController:picker animated:YES];
答案 0 :(得分:0)
我已经解决了这个问题。
之所以发生这种情况是因为帐户在Active Directory级别被禁用了。
希望这可以帮助有同样问题的人。