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

Are there any inherent problems with calling an ole object from tsql? I have
Is there any good practice for this? I wish I could solve the problem
Are there any problems converting a Visual Foxpro 6 application to Visual Foxpro 9;
Hopefully the answer is no, but are there any problems with using Request.Params instead
Are there any concurrency problems with one thread reading from one index of an
Would there be any problems calling an HTTPS page (e.g. a credit card authorisation
Is there any solution to overcome case-sensitive problem for contains method. I have code
I have a UIView as a XIB in Portrait mode. This view is added
I have a project in which the root viewcontroller call multi viewcontrollers. There is
in my app i have an UITabBarController with UINavigationControllers initialized like this UINavigationController *newsNavigationController

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.