You need to be more specific. How are you showing the next view controller? Are you init'ing it and then pushing it?
If you are then in that viewcontroller you could have a BOOL property (BOOL makeImage;
). When you create the view to push do this:
TheNextViewController *page = [[TheNextViewController alloc] initWithNibName:nil bundle:nil];
[page setMakeImage:YES];
[self.navigationController pushViewController:page animated:YES];
then in viewDidLoad
of TheNextViewController
:
- (void)viewDidLoad{
if(makeImage){
// make you image here and add it to the view
}
}
You might have to set other variables up like NSString *imageName;
and set those when you ...setMakeImage:YES]
if you want the button to show a specific image.