2

I am just accessing the PhotoLibrary not even the camera. It gives a black screen like this.

Here is the code:

@IBAction func selectProfileImageBtnTapped(sender: UIButton) {
    
    let myImagePicker = UIImagePickerController()
    
    myImagePicker.allowsEditing = false
    myImagePicker.sourceType = .PhotoLibrary
    
    presentViewController(myImagePicker, animated: true, completion: nil)
    
}

How to solve this?

peterh
  • 1
  • 15
  • 76
  • 99
laksh jay
  • 111
  • 8

0 Answers0