I am try below code to capture Image through camera. This code is working fine in all device below the iPhone 6 This code is not working in iPHone6 and iPhone6+. It show a black screen.
enter code here
(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
switch (buttonIndex)
{
case 0: NSLog(@"Photo Butten Clicked");
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[App_Delegate.window.rootViewController presentViewController:picker animated:YES completion:nil];
// [self presentViewController:picker animated:YES completion:NULL];
break;
case 1: NSLog(@"Camera Butten Clicked");
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[App_Delegate.window.rootViewController presentViewController:picker animated:YES completion:nil];
// [self presentViewController:picker animated:YES completion:NULL];
break;
default:
break;
}
}