"Take photo" option is not displaying using CNContactViewController while setting contact image in iOS 12

96 Views Asked by At

We have a feature in our application to save user entered phone number to iOS native contacts.

For that purpose we are using CNContactViewController.

var editor = CNContactViewController.FromNewContact(contact);
editor.Delegate = new MyCNConatactViewControllerDelegate(DismissCallBack);
editor.AllowsActions = true;
editor.AllowsEditing = true;

But "Take photo" option is not displaying while setting the contact image using CNContactViewController in iOS 12, but i can able to see "Take photo" in iOS Version 13,14.

In iOS 12, I can see only one "Choose from gallery" option.

Could you help me to show "Take photo" option button in iOS 12 as well?

Note:- We tried by adding photo permission in info.plist as well. That didn't help.

0

There are 0 best solutions below