I'm totally new to Objective-C, that's why maybe my problem could appear a little silly.
Ok, I have some ViewController
in my project (with the respective classes connected) and a NavigationController
that handles all the movements between them.
In my main view I've put a UIButton
that pushes the app to my second view, and a UIImageView
with a picture loaded.
What I'd like to do now, is to load the picture (gotten from the first view's imageView
) in another UIImageView
that I placed into the second view...can someone help me?
Googoling I've found this code...but it's not working...I think it's because it refers to the blank default class, and I need the active one:
- (void)viewDidLoad
{
[super viewDidLoad];
ViewController *viv = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.editingImageView.image = viv.myPic.image;
}
(the code I've pasted you here is on my second view)