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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:54:34+00:00 2026-05-23T20:54:34+00:00

This is for an addition to a legacy iPhone app with the architecture already

  • 0

This is for an addition to a legacy iPhone app with the architecture already defined (years ago, by somebody else.)

The main limitation is that the functionality of the main menu system is based on configuration files, so I can’t call any specific initialisation code from the main menu.

This means that the view I am developing is stand-alone, and has to somehow manage its states with the information from the system.

Further, on each screen there is a “Settings” button, taking the user to a Settings pane, that is pushed on the navigation stack on top of “my” view. When the user closes the settings pane, my view reappears, as per normal navigation.

OK, so here is my problem:

When the user enters my view from the menu I want it to be reset so all input fields are empty.

If the user goes to the settings screen and returns to my screen, I want all previous input to be preserved, i.e., not reset to empty fields.

If the user then goes back to the main menu, and re-enters my screen, fields should be empty again.

Is there a robust, documented and preferably simple way to know if I should reset the fields in this scenario?

  • 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-23T20:54:34+00:00Added an answer on May 23, 2026 at 8:54 pm

    Can you check the navigation stack to see if the settings page is currently on the stack?

    - (void)viewWillAppear:(BOOL)aAnimated
    {
        [super viewWillAppear:aAnimated];
    
        NSArray* stack = [[self navigationController] viewControllers];
    
        UIViewController* last = [stack lastObject];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In addition to this question: iPhone network performance , I would like to know
I developed one simple app, like subtraction, addition. In this app I use three
If I have this classes: public interface IBinaryCalculator{ double addition(double numb1, double numb2); }
I'm working on this addition problem worksheet and I got it working and running
I wrote this matrix addition program and I dont know why but I keep
I have a task at work that involves converting legacy SGM files into XML.
I have a legacy table that contains 'master' records and associated detail records. Detail
I have a legacy object model that has content objects and a table designed
As addition to this question, I took Ladislav Mrnka's answer . The problem is
I'm trying to write this custom addition class for very large integers, bigger than

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.