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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:16:50+00:00 2026-06-05T14:16:50+00:00

I have a app, where I’ve a tabview controller. All the data is dynamic,

  • 0

I have a app, where I’ve a tabview controller. All the data is dynamic, and when I enter on one tab, the data is loaded, but if I change my tab and come back to the initial tab, I haven’t lost the data on it, what is awesome. My problem now is that I’ve built a new viewcontroller (outside the tabs) and when I go into it, and come back to the tabs I’ve lost all my information!

Is there any way to retain the initial data? So there when the user goes to that another view, and comes back, don’t have to lose the data.

And another question. Is there anyway, to define variables that are available to every viewcontroller’s in the app?

  • 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-05T14:16:51+00:00Added an answer on June 5, 2026 at 2:16 pm

    Data will not change when you move from one tab to the other
    You will need to check if you have some special code in your viewWillAppear, if you load the data in this function you should know that viewWillAppear gets called when you travel tabs

    About the global Data, you could define them in your appDelegate class, add properties to the appDelegate and then you can access them like this

    //Add this on the header of your class
    #import "MyAppDelegate.h"
    
    //Then access the delegate like this
    MyAppDelegate *myAppDelegate = [UIApplication sharedApplication].delegate;
    //Access your variables
    myAppDelegate.myVariables;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have an app that finds your GPS location successfully, but I need to be
I have app with two sites, one where design is done and other which
I have app that uses two threads: one thread for regular application work and
Usually I have to set 2 different icons. One in the project's settings tab,
OK I have app for iPad that reads magazines. All previous issues works fine.
I have app that exports data in CSV. Recently I added Open In... feature
I have app.config in m win application, and loggingConfiguration section (enterprise library 4.1). I
We have App A as main app. Now we build from it App B
I have app in which i have recorded sound files i want that i
for example: I have app A, which references library A and library B. in

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.