如何删除uiimage pickercontroller上的黑色导航栏

时间:2014-06-26 11:48:26

标签: ios objective-c uiimagepickercontroller uipickerview video-recording

如何删除UIimage选取器上的黑色导航栏 我们使用视频模式 已编写代码隐藏导航栏和相机控件和工具栏

picker = [[UIImagePickerController alloc] init];

picker.sourceType = sourceType;
picker.delegate = self;
picker.allowsEditing = NO;
picker.showsCameraControls = NO;

enter image description here

2 个答案:

答案 0 :(得分:1)

picker.cameraViewTransform = CGAffineTransformScale(imagePickerController.cameraViewTransform, 1, 1.32 );

试试这个你可以解决问题

picker = [[UIImagePickerController alloc] init];

picker.sourceType = sourceType;
picker.delegate = self;
picker.allowsEditing = NO;
picker.showsCameraControls = NO;

答案 1 :(得分:0)

尽可能添加此代码:

picker.wantsFullScreenLayout = YES;