I just want to display "CreditsView". Therefore, if I press the button, show the type of loans, click ok, the view will disappear.
I have my base controller and my credit view controller, and now I'm trying something like:
- (IBAction)switchToCreditsView:(id)sender {
creditsViewController = [[CreditsViewController alloc] initWithNibName:@"CreditsViewController"];
[self.view addSubview:creditsViewController.view];
}
But if I press the Button button, my application crashed.
source
share