views:

319

answers:

2

I am making a camera app, which gives the user access to the Photo Library. They touch the button, and UIImagePickerControllerSourceTypeSavedPhotosAlbum pops up using presentModalViewController. When they touch a photo, I want a view to push the ImagePicker to the left and the new view to come in. The thing is, I want to keep the ImagePicker up, so when they go back to it there isn't a lag. This happens in many camera apps like NightCamera. Whenever I use [self.navigationController pushViewController:photoPreview];, it pushes the view to the main view, not the picker. When I use [picker.navigationController pushViewController:photoPreview];, nothing happens, because the picker's navigationController is nil. Does anyone know what to do?

+1  A: 

This isn't possible since the image picker is a modal view controller.

Modal view controllers appear above all other view controllers and views, including the navigation controller. Because of this, you can't push it onto a navigation stack nor can you push other view controllers onto the image picker, because it doesn't have a navigation stack.

Jasarien