Home > DeveloperSection > Interviews > Different source types of UIImagePickerController to pick images?

Posted on    October-19-2015 1:12 AM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  377  View(s)
Rate this:

Tarun Kumar

Total Post:107

Points:535
Posted on    October-19-2015 1:12 AM

There are three type of sourceType to pick images:

- Use this to pick image from Camera:

imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;

 

- Use this to pick image from all folders in the gallery:

 imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

 

- Use this to pick image from PhotosAlbum(camera roll):

imagePicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;

Modified On Oct-19-2015 01:17:28 AM

Don't want to miss updates? Please click the below button!

Follow MindStick