13

I am implementing a flow where the user can either select a photo from their library or take a photo using the camera. When presenting the UIImagePickerController modally I have to either go:

picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;  

or

picker.sourceType = UIImagePickerControllerSourceTypeCamera;

This means presenting a "scaffolding controller" where to user can pick either their Library or the Camera. I see that most other apps with this kind of functionality go directly to the Camera controller, but displays a button for selecting from the library instead.

All examples/tutorials I can find, including Apple's PhotoPicker source, does this empty viewController where you pick from camera or library - but all apps I check does the 'direct to camera - with the option for going to library".

How do I add the photo library button option to the camera tool bar?

(app >= iOS 4.3)

Thanks for any help given.

RickiG
  • 11,380
  • 13
  • 81
  • 120

2 Answers2

5

For this purpose I have used PhotoPicker by Apple.

Igor
  • 4,235
  • 3
  • 34
  • 32
5

According to this previous question

Enabling the photo library button on the UIImagePickerController

you can use cameraOverlayView and showsCameraControls to make the implementation.

-Vik

Community
  • 1
  • 1
Vik
  • 488
  • 2
  • 10
  • 19