Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4585744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:32:21+00:00 2026-05-21T21:32:21+00:00

I’ve got an app that has 4 views; HomeView, PreGameView, GameView, PostGameView. The app

  • 0

I’ve got an app that has 4 views; HomeView, PreGameView, GameView, PostGameView. The app works in such a way that I start on HomeView, then I click start which takes me to the PreGameView, click begin which takes me to the GameView, on end game it takes me to the PostGameView, from which I can either go back to the GameView or return to the HomeView.

I’m layering these views by using the “presentModalViewController” method. But when I layer all the way down to PostGameView and then decide to go back to the HomeView, the screen just goes white.

I’ve also tried dismissing each modelview before presenting the next, but that doesn’t work and the app gets all confused. Does anyone know the correct way to do this? Please help?

HomeView.m

- (IBAction)loadPreGameView:(id)sender {   
    PreGameView *preGameView = [[PreGameView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:preGameView animated:YES];
}

PreGameView.m

- (IBAction)loadGameView:(id)sender {
    GameView *gameView = [[GameView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:gameView animated:NO];
}

GameView.m

- (IBAction)loadPostGameView:(id)sender {
    PostGameView *postGameView = [[PostGameView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:postGameView animated:NO];
}

PostGameView.m

- (IBAction)loadGameView:(id)sender {
    GameView *gameView = [[GameView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:gameView animated:NO];
}

- (IBAction)loadHomeView:(id)sender {
    HomeView *homeView = [[HomeView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:homeView animated:NO];    
}

I also tried the below for my PostGameView.m, but it just showed the GameView behind it:

PostGameView.m (old)

- (IBAction)loadGameView:(id)sender {
    GameView *gameView = [[GameView alloc] initWithNibName:nil bundle:nil];
    [self presentModalViewController:gameView animated:NO];
}

- (IBAction)loadHomeView:(id)sender {
    [self dismissModalViewControllerAnimated:YES];  
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:32:22+00:00Added an answer on May 21, 2026 at 9:32 pm

    A much better approach would be do use the UINavigationController to do this.

    Create a UINavigationController, init with HomeView
    from there… [self.navigationController pushViewController:nextViewController animated:NO]

    when you are done and want to POP to the beginning [self.navigationController popToRootViewControllerAnimated:NO];

    the nice thing about using the NavController, is that each UIViewController will automatically have a reference to the NavController holding it, by calling self.navigationController;

    you can also turn off the navigationBar if you want full screen.

    also, UINavigationController retains its ViewControllers, so you should call release on any UIViewController you create, after you “push” it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.