I have a UIViewController opened when a button is pressed in the previous one:
In the first one:
-(IBAction)info:(id)sender{
MapInfo *infoView = [[MapInfo alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:infoView animated:YES];
}
I would like to send two parameters to MapInfo, but I cant find how to do it.
Thank you in advance
You can either write custom init method and use that instead of
initWithNibName:bundle:or you can add properties for your parameters in
MapInfoand set them before presenting: