在我的应用程序上,我正在尝试初始化并呈现UIImagePickerViewController
自定义大小的实例。基本上,我想要一个大小为 200x200 的方形视图悬停在我的 viewController 上。我尝试了以下代码,它仍然以全屏模式显示相机覆盖。关于如何在叠加视图上实现自定义框架的任何建议?
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePickerController.delegate = self; imagePickerController.showsCameraControls = NO;
imagePickerController.cameraOverlayView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
[self presentViewController:imagePickerController animated:NO completion:nil];
任何帮助表示赞赏。