View Switching via Round Rect Button

iSkythe

Well-known member
May 12, 2009
87
2
0
Visit site
The app I am currently making requires the ability to load new views constantly, but via the press of a Round Rect Button.

Every tutorial I have come across shows how I can do it via Navigational bars, Tabs, etc., just not the way I want.

Does anyone know how to do this?
 

iSkythe

Well-known member
May 12, 2009
87
2
0
Visit site
Never mind, I figured it out.

Thanks for the help though.

-(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:mad:"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];
}
}
 

Trending Posts

Members online

Forum statistics

Threads
260,297
Messages
1,766,233
Members
441,232
Latest member
Thomas Woods