Difficulty extending the Camera example for photo library

Hi Everybody,

I’ve been trying to get the Camera example working with 2 buttons, one for the photo library and one for the camera itself.

My code is here: http://pastebin.com/Bj2UnftD

Unfortunately, this current code doesn’t work. Both buttons go to the camera, and neither to the photo library. The only way to access the photo library appears to be when I make both buttons attempt to access the photo library.

Thanks,

Hamed