I am new to iphone development.I am using UIImagePickerController to access the photo library of the device.When the image is selected it navigates to another view.At the same time i am dismissing the picker controller and navigating to the another view.I want to hide the dismissing of picker controller so it should look like ,after clicking the image it navigates to another view.Here is my code
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img1 editingInfo:(NSDictionary *)editInfo {
[[picker parentViewController] dismissModalViewControllerAnimated:NO];
PictureViewController *pic = [[PictureViewController alloc] initWithNibName:@"PictureViewController" bundle:nil];
[self.navigationController pushViewController:pic animated:YES];
}
Please help me out.Thanks.