I am developing an application which needs iPhone camera access. I am using xcode version 6.3 and swift 1. It was working fine with iOS 8 and currently I updated my iPhone to iOS 9.0.1. And when accessing camera through my application, all I am getting is a blank black screen. This is the sample code I have been using
func CameraAction() {
imagePicker.sourceType = UIImagePickerControllerSourceType.Camera
self.presentViewController(imagePicker, animated: true, completion: nil)
imagePicker.allowsEditing = false
}
I found the solution myself. goto setting -> privacy -> camera and enable or disable camera access for individual apps