是否可以更改 UIImagePickerController 的可显示帧大小?我想显示相机视图,但不是在整个屏幕上,而是在视图中间的 280*190 边界框中显示
这是我的viewDidAppear
:
- (void) viewDidAppear:(BOOL)animated {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.showsCameraControls = NO;
picker.cameraDevice = UIImagePickerControllerCameraDeviceFront;
[self presentModalViewController:picker animated:YES];
[super viewDidAppear:YES];
}
我在任何地方都找不到这样做的方法……没有人使用它吗?
我如何使用覆盖类?