I have been beating my head on this for a few hours. I have some sample code (using a uinavigationcontroller) when the view loads the camera roll will be presented. However, when I try to incorporate the same code into my app, which is a tabBarController, I get a blank modal photo picker. I can't seem to track down what I am doing wrong.
// viewDidLoad snippet
// bring up image grabber
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeSavedPhotosAlbum]) {
NSLog(@"UIImagePickerControllerSourceTypePhotoLibrary available");
UIImagePickerController *ipc = [[UIImagePickerController alloc] init];
ipc.delegate = self;
ipc.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
ipc.allowsEditing = YES;
[self.tabBarController presentModalViewController:ipc animated:YES];
[ipc release];
}
Any insight would be appreciated.