Go Back   The iPhone Blog Forums > iPhone Plus > iPhone Developer Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2009, 10:57 PM
iSkythe's Avatar
iPhone Newbie
 
Join Date: May 2009
Posts: 34
iSkythe is on a distinguished road
Default View Switching via Round Rect Button

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?
Reply With Quote
  #2 (permalink)  
Old 07-03-2009, 02:40 PM
iPhone Nanite
 
Join Date: Jul 2009
Posts: 2
leftspin is on a distinguished road
Default

Can you describe more about exactly how you want this to happen?
Reply With Quote
  #3 (permalink)  
Old 07-05-2009, 11:21 AM
iSkythe's Avatar
iPhone Newbie
 
Join Date: May 2009
Posts: 34
iSkythe is on a distinguished road
Default

Never mind, I figured it out.

Thanks for the help though.

Quote:
-(IBAction)advanceid)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];
}
}
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 02:33 AM.

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
The iPhone Blog