UIImagePicker shows black space at bottom after dismissing it

197 Views Asked by At

Opening an UIImagePicker to pick an image from library/camera, after dismiss Window shrinks in size by leaving extra blank space at bottom. It reduced the size of window, it continuously being there while moving to other screens.

Anyone having an idea why it's happening. Please check below images. Same think happens in device too.

It's just a general code I've kept, still here it is.

let imagePicker=UIImagePickerController()
    imagePicker.sourceType=UIImagePickerControllerSourceType.savedPhotosAlbum
    imagePicker.allowsEditing = true
    imagePicker.delegate = self
    self.navigationController?.present(imagePicker, animated: true, completion: nil)

enter image description here enter image description here

0

There are 0 best solutions below