CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Jan 2017 |
Maintained by reesun.
- (IBAction)onClickBtnPicker:(id)sender {
SYContactsPickerController *vcContacts = [[SYContactsPickerController alloc] init];
vcContacts.delegate = self;
[self presentViewController:vcContacts animated:YES completion:nil];
//
// if ([SYContactsHelper canAccessContacts]) {
// SYContactsPickerController *vcContacts = [[SYContactsPickerController alloc] init];
// [self presentViewController:vcContacts animated:YES completion:nil];
// }
// else {
// NSLog(@"can not access contact");
// }
}
#pragma mark - SYContactsPickerControllerDelegate
- (void)contactsPickerController:(SYContactsPickerController *)picker didFinishPickingContacts:(NSArray *)contacts {
NSLog(@"contacts==%@",contacts);
}
- (void)contactsPickerController:(SYContactsPickerController *)picker didSelectContacter:(SYContacter *)contacter {
NSLog(@"contacter==%@",contacter);
}
- (void)contactsPickerController:(SYContactsPickerController *)picker didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSLog(@"indexPath==%@",indexPath);
}
- (void)contactsPickerControllerDidCancel:(SYContactsPickerController *)picker {
NSLog(@"contactsPickerControllerDidCancel");
}SYContactsPicker/目录到你的projectFoundation、UIKit、AddressBook or Contacts
SYContactsPickerController *vcContacts = [[SYContactsPickerController alloc] init]vcContacts.delegate = self[self presentViewController:vcContacts animated:YES completion:nil]contactsPickerController:didFinishPickingContactscontactsPickerController:didSelectContactercontactsPickerController:didSelectRowAtIndexPathcontactsPickerControllerDidCancel:This code is distributed under the terms and conditions of the MIT license.
NB! If you are fixing a bug you discovered, please add also a unit test so I know how exactly to reproduce the bug before merging.