---
title: "Different source types of UIImagePickerController to pick images?"  
description: "Different source types of UIImagePickerController to pick images?"  
author: "Tarun Kumar"  
published: 2015-10-19  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/22864/different-source-types-of-uiimagepickercontroller-to-pick-images  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Different source types of UIImagePickerController to pick images?

## 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;
```

## Answers

### Answer by Tarun Kumar

## 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;
```


---

Original Source: https://www.mindstick.com/interview/22864/different-source-types-of-uiimagepickercontroller-to-pick-images

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
