3

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

enter image description here enter image description here

This is how I present 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'm hoping for new times.

Community
  • 1
  • 1
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82
  • 1
    It was possible back then and is still possible. You can either add it as an overlay using `setCameraOverlayView:` or even add it as a basic subview to your image picker. – Lyndsey Scott Jan 04 '15 at 19:30

1 Answers1

1

I ended up using DBCamera, which lets you customize the entire camera view pretty easily.

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

Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82