Enable camera clip thumbnail in UIImagePickerController

Is there a way to display a thumbnail of the camera roll (marked in red below) inside the UIImagePickerController? The correct image shows what the default UIImagePickerController looks like with a camera source.

enter image description hereenter image description here

This is how I represent the camera:

func openCamera() {
    if(UIImagePickerController .isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera)) {
        picker!.sourceType = UIImagePickerControllerSourceType.Camera
        picker!.showsCameraControls = true
        picker!.cameraDevice = UIImagePickerControllerCameraDevice.Front
        self.presentViewController(picker!, animated: true, completion: nil)
    } else {
        NSLog("No camera")
        openGallary()
    }
}

      

This post claims that it was not possible in 2010, but I hope for new times.

+3


source to share


1 answer


I ended up using DBCamera which makes it easy to customize the whole camera view.



I do believe Lyndsey Scott is right, but it can be done simply by adding a custom subview to the default camera view.

+1


source







All Articles