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

The Archive Base Latest Questions

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

I have a game where when you finish a level. You have the option

  • 0

I have a game where when you finish a level. You have the option to replay that level. So i programmatically created a replay level button to appear when the level is complete, and i told it to perform the selector replay level when touchupinside. And in my replay level method i was basically just going to perform a segue to the level, so as to basically reset everything in that vc. however normally when i programatically perform segues i make a vc segue to another vc, and give it an identifier and perform it. Yet, how in the world would i be able make a segue from my vc to itself?

  • 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:36:34+00:00Added an answer on June 9, 2026 at 1:36 am

    You should not be trying to reset a view controller by “segueing to itself”, (which in effect means deallocate and reallocate the VC’s memory), what you should be doing is resetting the main game loop and setting all values back to some default when the level is restarted. From a purely technical standpoint, it is simply not possible either. A navigation controller (which I will assume you are using considering you can successfully change view controllers), manages a stack of view controllers, which when mutated either deallocates, or retains pointers to its view controllers. In effect, you would be asking your VC object in the array to auto-refresh itself without some nasty memory management problems.

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

Sidebar

Related Questions

I have a route that looks like this: SiteGameBundle_GameFinish: pattern: /game/finish defaults: { _controller:
I have a game that currently runs under Windows and Mac OS X and
I have a game engine that uses OpenGL for display. I coded a small
We have a game that is very close to being released, but we have
On exit button of my game I used System.runFinalizersOnExit(true); System.exit(0); I have also tried
I have 3 activities. start / game / finish, I want to go start
I'm building an iOS game that will have both singleplayer and multiplayer modes. I'm
Im using Game Kit in my iPhone game, and when I finish a level
I have created a Quiz app for Android using the tutorial here: http://automateddeveloper.blogspot.co.uk/2011/06/getting-started-complete-android-app.html For
I'm developing a game. I want to have game entities each have their own

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.