Question: I am developing an app which allows you to select photos and place them into different positions. The workflow is basically:

1. Tap an area of the screen
2. `UIImagePickerController` displays
3. Select a photo
4. Photo displays in the tapped area of the screen

I would like it so that if the user goes through this workflow for a second time, the `UIImagePickerController` when displayed will be showing the same album, and position within that album, that the user was last at.

I've tried saving a reference to the `UIImagePickerController`, as well as the `UIPopoverController`, so that they are created only once. However, every time I present the popover containing the `UIImagePickerController`, it is back at the main photos menu (eg. Camera Roll, Photo Library, My Photo Stream).

Any ideas for how to achieve what I'm after?

Answer: 
keep a `UIImagePickerController` obj in .h class (for example `imagePicker`)

alloc the obj once (for example in `viewDidLoad`)

```
imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self; 
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self.view addSubview:imagePicker.view];
imagePicker.view.hidden = YES;
imagePicker.view.frame  = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
imagePicker.view.bounds  = CGRectMake(0,20,self.view.frame.size.width, self.view.frame.size.height);

```

In `didFinishPickingMediaWithInfo`

```
if([[info valueForKey:UIImagePickerControllerMediaType] isEqualToString:@"public.image"]){
    imagePicker.view.hidden = YES;
}

```

When you want to show the `imagePickerView` just do

```
imagePicker.view.hidden = NO;

```
Use AlAssetsLibrary. It control the image & video capture under the application. there a demo on apple. 

<https://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html> 

look for this or 

if you want to make a cutomize album for the image and video here a great example.

<https://github.com/Kjuly/ALAssetsLibrary-CustomPhotoAlbum>