修改 我正在添加照片。在屏幕截图中,我点击了右侧的交叉图像。但它选择下一张图片。另见灰色框选择。
我用pop来显示UIImagePickerController。然后改变了它的内容。现在当我点击图像时,选择了第二张图像。所有图像的标签位置都已移位。
这是我的代码。
popOver = [[UIPopoverController alloc] initWithContentViewController:cameraUI];
[popOver presentPopoverFromRect:CGRectMake(240, 768, 0, 0) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
popOver.popoverContentSize = CGSizeMake(600, [UIScreen mainScreen].bounds.size.height);
cameraUI.contentSizeForViewInPopover = CGSizeMake(600, [UIScreen mainScreen].bounds.size.height);
还实现了以下方法,因为点击保存的照片后,popver中的下一个视图正在减少其内容。
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
viewController.contentSizeForViewInPopover = CGSizeMake(600, [UIScreen mainScreen].bounds.size.height);
}
我该如何解决这个问题?请帮忙。
修改 此外,由于我的默认方向是横向,我的相机视图不会以纵向模式旋转。图像仅从相机拍摄。