3

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];
AUK4SO
  • 301
  • 2
  • 13

0 Answers0