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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:28:39+00:00 2026-05-31T18:28:39+00:00

I have an app whose navigation tree is described on the attached image. Basically,

  • 0

I have an app whose navigation tree is described on the attached image. Basically, I have two main screens (Home and Profile), both of which can access the settings screen. On that settings screen I can go to many different specific setting screens to change. Once the user accepts the changes in any of those screens, it goes back to the main settings screen.

App Navigation
The expected behavior of the back button is the following:

  • From the Settings screen, go back to Home or Profile, depending how the user got to the settings screen in the first place.
  • From any of the specific S{x} screens it should go back to the main Settings screen.

I’m currently using the default back behavior, but I have issues on the following case:

Home -> Settings -> S1 -> Settings -> S1 -> Settings

If the user presses the Back button, I would like it to go back to the Home screen, but it goes back to S1, and then back to Settings, and then back to S1 and so on, depending on how many times I entered the S1 screen.

How can I make the Settings view to “remember” to which screen it should go back to?

  • 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-31T18:28:40+00:00Added an answer on May 31, 2026 at 6:28 pm

    Don’t manage your view controller hierarchy manually. Use UINavigationController, this is what it is designed for. When you need to go from your home screen to your settings screen, instantiate your settings view controller and push it onto the stack. When you need to go from your settings screen to S1, instantiate your S1 controller and push it onto the stack. When you need to come back out from S1 to your settings screen, pop it off the stack. When you need to come back out from your settings screen to your home screen, pop it off the stack.

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

Sidebar

Related Questions

I have an image in a C# WPF app whose build action is set
I have an app which goes through a set of screens within a navigation
I have an app whose first page is simply a image with loading symbol.
I have a an app whose Main activity shows a GLSurfaceView . Every time
I have a navigation based app. Press a button on main view, then I
If I have a whole bunch of requires in my main app file: require
I have a 'template' system in my CMS rails app. Basically the whole HTML
I have an app that uses the navigation controls. What I would like is
I have a navigation based app where a certain pushed view has a nice
We have an iOS app whose push notification cert has expired and we're trying

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.