Source type 1 not available
This is because you are opening a camera on the simulator(or on a device not having camera)… since the code is something like [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] and obviously, the simulator doesn’t have a camera… Proceed giving an alert like this, if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@”Error” message:@”Device has no camera.” delegate:nil cancelButtonTitle:@”OK” … Read more