I would like to passing a uiimage from one view to another view which contains a uiwebview. So that i can allow easy interaction and gestures on the image.
But i have no idea how to code in the viewdidload method should be used.
Here is my code:
//first view
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"showbig"]) {
bigpic *image = [segue destinationViewController];
image.bigpicture1 = set11.image;
}
//new view
- (void)viewDidLoad
{
[super viewDidLoad];
NSURL *url = [NSURL URLWithString:bigpicture1];
NSURLRequest *requestURL = [NSURLRequest requestWithURL:url];
[self.bigpicture loadRequest:requestURL];
}