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 8327617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:10:27+00:00 2026-06-09T01:10:27+00:00

Im new to iPhone programming. And, im trying to make a game with like

  • 0

Im new to iPhone programming. And, im trying to make a game with like 200 levels. I want to use modal segueing because i dont want the naviagational bar at the top, and also i want the cross dissolve animation. Say I have vc one. And then I have vc 2

ok, so vc 1 segues modally to vc 2

and then i have a button on vc 2 to segue back to vc 1

so, does the program know to pop vc 2 off the stack? or did i just create a memory leak so that now vc1, vc2, and vc1 are on the stack instead of just vc1.

and then still also if i had vc1 to vc2, and vc2 to vc3, and in vc3 i have a button that goes back to vc 1, will the program pop both vc 2 and vc 3 off the stack? or will 4 be on the stack? And anyways, since with a modal segue theres no real back button (like in a navigational push segue theres always a back button on the navigational bar), does modal segueing even have a stack?

I mean, or is it independent? Like, say vc segues to vc2, and vc2 to vc3. Now, is vc 2, and 1 even on the stack? or is it just vc3?

sorry, im just a little confuzzled about all this, and im not sure how to make my game. Because if i have 100 view controllers with different levels, then surely in order to have modal segueing I would need to code some popping off vcs off the stack each time i segue right, so that i dont end up with 100s of controllers on the stack? And i dont even know how to tell my program how to pop off view controllers.

  • 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-06-09T01:10:29+00:00Added an answer on June 9, 2026 at 1:10 am

    So a modal segue is mainly for presenting content that interrupts the usual flow of the application. It isnt really a good fit for presenting several view controllers sequentially because, as you say, if you have a segue that goes back to the first view controller it doesn’t pop anything off the stack.

    You want to look for one of the Apple provided View Controller containers to see which one would best fit going through a sequential list of view controllers.

    The page view controller is useful because it only keeps one or two view controllers loaded at a time and as of iOS 5 you can set the transitionStyle property to ‘UIPageViewControllerTransitionStyleScroll’ to scroll left and right (or up and down) between view controllers.

    If you dont like the view controllers apple provides for this then look at the documentation for UIViewController about how to write your own custom container view controller. This way you can define your own stack, pop the stack as needed and have a dissolve transition.

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html%23//apple_ref/doc/uid/TP40006926-CH3-SW81

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

Sidebar

Related Questions

I'm new to iPhone programming, and I'm trying to make a simple program without
I'm new to iPhone programming and I'm trying to use CHDataStructures in my project.
I am new to iPhone programming and would like to be able to use
I'm fairly new to iPhone programming and am trying to implement a double-component PickerView.
I am new in iPhone programming. At the moment I am trying to recognize
I am new to iPhone programming. I want to get the height and width
I'm quite new in iPhone Programming, but I'm trying to do my best cause
I'm very new to iphone programming. I'm trying to write an application where I
I have started looking into iPhone game programming. I want to build a game
I am new in iphone programming. I would like to know how can i

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.