Search code examples
iosobjective-cuiimagepickercontrolleruipickerviewvideo-recording

How to remove that black navigation bar on uiimage pickercontroller


How to remove that black navigation bar on UIimage picker we use video mode already write code for hides the navigation bar and camera controls and toolbar

that is

picker = [[UIImagePickerController alloc] init];

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

enter image description here


Solution

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

    Try this u can sole the issue

    picker = [[UIImagePickerController alloc] init];
    
    picker.sourceType = sourceType;
    picker.delegate = self;
    picker.allowsEditing = NO;
    picker.showsCameraControls = NO;