在我的应用程序中,我想为UIImagePickerController
添加叠加视图,以及如何显示此视图以适合横向模式,下面的代码以纵向模式显示视图。
picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.showsCameraControls = NO;
picker.navigationBarHidden = YES;
picker.toolbarHidden = YES;
OverLayView *customView = [OverLayView customView];
picker.cameraOverlayView = customView;
[self presentViewController:picker animated:YES completion:NULL];
需要有关如何在横向模式下正确设置此内容的更多指导。
感谢。