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

  • SEARCH
  • Home
  • 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 6329471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:40:20+00:00 2026-05-24T17:40:20+00:00

Are there any problems with this set up: I have three viewcontrollers 1. main

  • 0

Are there any problems with this set up:
I have three viewcontrollers
1. main view controller (launched when starting the app)
2. choose level view controller
3. game view controller

I use

        [self presentModalViewController:tmpControler animated:YES];

To get from (1) to (2), this is done in the first view controller, the tmpControler is an instance of the choose level controller.
And then I use

GameplayViewController *tmpControler = [[GameplayViewController alloc] initWithNibName:nil bundle:nil];
tmpControler.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
self.window.rootViewController = tmpControler;
[tmpControler release];

To get from (2) to (3), this is done in the application delegate. When I have played the game I want to switch back to (1) by using the same techneque as from (2) to (3). My question is if there are any problems with using presentModalViewController to get from (1) to (2). Is the second view controller on the stack? Since I never use:

[self dismissModalViewControllerAnimated:YES];

to dismiss it.

Is there any smarter way of switching views in this sequence (1->2->3->1) ?

  • 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-24T17:40:21+00:00Added an answer on May 24, 2026 at 5:40 pm

    No, that isn’t really a problem. View controllers are relatively lightweight when they’re offscreen (e.g. when covered up by a modal view controller, as you’re doing here); if your app starts running low on available memory, the first view controller will automatically unload its view.

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

Sidebar

Related Questions

I have a UIView as a XIB in Portrait mode. This view is added
I am a new developer. I am facing some problems in my new app.
I'm using Entity Framework 4.1 Code First. In my entity, I have three date/time
I have a DIV with a set height and overflow: hidden . Inside the
I have a TextBox in an Asp.net form. there is a simple javascript witch
There are tons of resources concerning coding on the iPhone. Most of them concern
The question might sound pretty naive, ut this is really troubling me. I am
I am trying to refresh an UITableView every time I navigate the the view
I've been building a game application for iOS. The application was working fairly well,
I've recently started developing for the iPhone and so far I'm doing pretty good

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.