Camera screen showing blank black

979 Views Asked by At

I have a UIButton in my app name as "Add New Contact". When I click on this button It opens native new contact screen. but when I click on "add photo" in this native new contact screen, It have two option "Take Photo" and "Choose Photo". By clicking on "Take Photo", It opens camera but everything is showing blank black screen. Click option is also not working in this screen. My code snippet is -

let con = CNContact()
        let vc = CNContactViewController(forNewContact: con)
        vc.delegate = self
        let navVC = UINavigationController(rootViewController: vc)
        self.present(navVC, animated: true, completion: nil)

Please help me to fix this. enter image description here

0

There are 0 best solutions below