I have an image in main view controller and i want this image to be shown in new view controller...I know how to get string values between two scenes but no idea about images in storyboards....please help me out...
Is it right way to pass UIImage to another controller...
if UIImage *img1=[UIImage imageNamed:@"1.jpg"]; and UIImageView is *newimgview for newViewController
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"imageview"])
{
newViewController *nvc=segue.destinationViewController;
nvc.newimgview.image=img1;
}
}