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
  • 11,875
  • 18
  • 85
  • 108
laksh jay
  • 111
  • 8

0 Answers0