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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:51:26+00:00 2026-05-28T07:51:26+00:00

I created an app with two different calculator views, each one with a separate

  • 0

I created an app with two different calculator views, each one with a separate view controller and separate nib file. I set up a tab bar on the each view to switch back and forth between views. When I switch views each view controller retains whatever data has been input.

I recreated the same app using the storyboard feature. So now I have one nib file only with the same two view controllers. But when I transition between views I lose whatever data has been input on the second view. I am wondering why I now lose the data and how to retain it when leaving the sub view.

Any help appreciated.

  • 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-28T07:51:26+00:00Added an answer on May 28, 2026 at 7:51 am

    I believe this is because the storyboard is being more aggressive about releasing view controllers that are no longer on screen. I expect you would have seen the same behavior with separate nibs in high memory pressure situations.

    In short, you as the programmer should design your view controllers expecting them to be released as soon as possible. Work out a plan for simple data persistence to ensure that the user’s data is always available. Don’t count on view controller objects sticking around to ensure that the state is preserved.

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

Sidebar

Related Questions

I have created a tab based app, in one of the tab, there is
My app uses two databases (separate files). To handle these databases I have created
I've created a custom button in my Android app that has basically two different
I've created a simple iPhone app which has two .xib files. In the app
I created an App.config file in my WPF application: <?xml version="1.0" encoding="utf-8" ?> <configuration>
I have successfully created an app that reads from a bundled .plist file and
I've created a small Activity which is capable of loading two different HTML strings
Help! I have two objects that i have created using different techniques in django;
I have created two different iPhone application with two different push notification certificate, when
Hi I have created a windows service and I have two different timer variables

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.