由于我已经更新iPhone上的XCode(6.0,6A313)和iOS(8.0,12A365)gm种子,ABPeoplePickerNavigationController代码不像以前那样工作。 iOS 7.1.2:如果有人想导入一个联系人,地址簿打开,你看到联系人的完整列表,select一个后,它打开联系人的详细信息视图,比你可以添加联系人点击的手机您想要导入的号码。 iOS 8.0:它的一切类似,但如果你点击一个联系人的号码,拨打电话号码,而不是导入它.. 码: #pragma mark – AddressBook Delegate Methods -(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person{ return YES; } -(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{ // Get the first and the last name. Actually, copy their values using the person object and the appropriate // properties into two string variables equivalently. // Watch out the ABRecordCopyValue method […]