iosobjective-cuipickerviewcontroller

UIImagePickerController Layout Issue - iOS


I am using UIPickerViewController to capture photo, but I am getting layout as below:

enter image description here

As you can see in image - The Switch camera button is not showing properly.

Below is my code

    UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    imagePickerController.mediaTypes = @[(NSString *)kUTTypeImage];
    imagePickerController.sourceType = type;
    imagePickerController.delegate = self;
    imagePickerController.navigationBarHidden = YES;
    imagePickerController.cameraDevice = UIImagePickerControllerCameraDeviceFront;
    self.imagePickerController = imagePickerController;
    [self presentViewController:self.imagePickerController animated:YES completion:nil];

I am not sure what am I doing wrong, Please suggest

Thanks


Solution

  • After trying many thing, I come to know that the issue is regarding Pixate Framework.

    Pixate Issue

    Thanks