我正在使用以下代码从 Ipad 捕获图像:
if ( [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] ) {
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = imagePickerDelegate;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera | UIImagePickerControllerSourceTypePhotoLibrary;
UIPopoverController *popover;
[popover setPopoverContentSize:CGSizeMake(320, 480)];
[popover setContentViewController:imagePicker animated:YES];
}
我的问题是,当我将 ipad 从纵向旋转到横向时,相机仍然向我显示纵向图像。但是当我对图像选择器使用全屏时,它工作正常。一个想法我可以如何解决这个问题。