How to pass the image from oneview to another view in iphone?
- by Warrior
I am new to iphone development.I want to display the image selected in a seperateview.I have used UIImagePickerController to pick the image from device library.On clicking the image i have to navigate to another view and display the image.How can i send the image o another view.I have used delegate methods for accessing string in other views.Is there any possibility to send the image via delegate methods.
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img1 editingInfo:(NSDictionary *)editInfo {
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
EmailPictureViewController *email = [[EmailPictureViewController alloc] initWithNibName:@"EmailPictureViewController" bundle:nil];
[self.navigationController pushViewController:email animated:YES];
}
From the above code i have to set delegates for img1 which is of type UIImage.
Is there any other way to achieve my task.Please help me out.Thanks.