Reputation: 411
Since iOS 9 while adding a new contact in my app using addressbookui framework I am unable to add photo from camera although I can add a photo from photo library. This works as expected in iOS 8 and below versions. I have used even contactsUI API and tried to add a photo from camera but even that doesnot work.
//iOS 9
CNContact *contact = [[CNContact alloc] init];
CNContactViewController *contactVC = [CNContactViewController viewControllerForNewContact:contact];
[self presentViewController:contactVC animated:YES completion:nil];
//iOS 8
ABNewPersonViewController *unknownPersonViewController = [[ABNewPersonViewController alloc] init];
[self presentViewController:unknownPersonViewController animated:YES completion:nil];
Upvotes: 3
Views: 574