Q:

Transferring Image between two scenes in storyboard

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;

    }
}

A:

Yes ...finally I got it...using this code
In case  UIImage *imag1=[UIImage imageNamed:@"some.png"];

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([segue.identifier isEqualToString:@"imageview"])
    {
        newViewController *nvc=segue.destinationViewController;
        nvc.imag2=imag1; //imag2 is UIImage that globally declared in newViewController
    }
}

And in newViewController under ViewDidLoad or wherever u want to use...

self.imageview2.image=imag2;

Thanks for all ...

