Never mind, I figured it out.
Thanks for the help though.
Quote:
-(IBAction)advance id)sender
{
//Lazy load - we load Question1 the first time the button is pressed
if (self.question1ViewController == nil)
{
Question1ViewController *question1Controller = [[Question1ViewController alloc] initWithNibName:@"Question1View" bundle:nil];
self.question1ViewController = question1Controller;
advanceButton.hidden = YES;
wrongButton.hidden = YES;
wrongButton2.hidden = YES;
wrongButton3.hidden = YES;
[question1Controller release];
}
{
[titleViewController.view removeFromSuperview];
[self.view insertSubview:question1ViewController.view atIndex:1];
}
}
|