Best Answer-推荐答案 strong>
要显示联系人列表,您可以使用以下代码:
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
picker.peoplePickerDelegate = self;
[self presentViewController: picker animated:YES completion: nil];
你可以使用
- (BOOL)peoplePickerNavigationControllerABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPersonABRecordRef)person propertyABPropertyID)property identifierABMultiValueIdentifier)identifier
从联系人中选择电话号码时执行必要的操作。
如需快速入门,请查看 AddressBookProgrammingGuideforiPhone
关于iphone - 从应用程序访问 iphone 联系人,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/14142304/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) |
Powered by Discuz! X3.4 |