如何为UIImagePickerController放置横向叠加视图

时间:2014-08-05 11:38:16

标签: ios objective-c iphone ios7

在我的应用程序中,我想为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];

需要有关如何在横向模式下正确设置此内容的更多指导。

感谢。

1 个答案:

答案 0 :(得分:0)

我希望此链接很有用,并解决您的UIImagePickerController

问题

UIImagePickerController in Landscape