I am currently writing a program where if a certain condition is true, it should load a modal UIImagePicker camera view. I declared the UIImagePickerDelegate in the ViewController for the application. However when the program is instructed to load the modal camera view the camera view will appear but the screen is just black and the cancel and camera buttons do not do anything. I wrote this code in viewDidLoad...
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
// Set source to the camera
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
// Delegate is self
imagePicker.delegate = self;
//imagePicker.allowsImageEditing = NO;
[self presentModalViewController:imagePicker animated:YES];