我正在尝试拍摄,它有效,但有 2 个问题。首先,弹出控制器以最小尺寸显示(它不服从 setPopoverContentSize),其次也是最重要的,捕获的镜头只有 640x640 像素,而我想成为可用的最大尺寸(5MP)。
下面的代码有什么问题?
imgPicker = [[UIImagePickerController alloc] init];
imgPicker.delegate = self;
imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
imgPicker.showsCameraControls = YES;
pop = [[UIPopoverController alloc] initWithContentViewController:imgPicker];
pop.delegate = self;
CGRect re = CGRectMake(50,20,100,20);
CGRect re2 = CGRectMake(0,0,500,500);
[pop setPopoverContentSize:re2.size];
[pop presentPopoverFromRect:re inView:[self view] permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
非常感谢