UIImagePickerController不显示旋转按钮

时间:2014-03-03 05:29:14

标签: ipad ios7 uiimagepickercontroller

它是iOS7中在iPad上运行的iPhone应用程序。在iPhone中它工作正常。 但是在iPad中,不会显示旋转按钮,并且视图就像在顶部切​​断一样。 我对图像选择器没有做任何奇怪的事情。以下是我展示的方式:

- (void)showImagePickerWithSourceType:(UIImagePickerControllerSourceType)sourceType
{
     UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
     imagePicker.mediaTypes = @[(NSString*)kUTTypeImage];
     imagePicker.sourceType = sourceType;
     imagePicker.delegate = self;
     imagePicker.allowsEditing = YES;

     //Select front facing camera if available
     if (sourceType == UIImagePickerControllerSourceTypeCamera && [UIImagePickerController   isCameraDeviceAvailable:UIImagePickerControllerCameraDeviceFront])
     {
         imagePicker.cameraDevice = UIImagePickerControllerCameraDeviceFront;
     }

     [self presentViewController:imagePicker animated:YES completion:nil];
} 

Screenshot

0 个答案:

没有答案