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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:09:24+00:00 2026-06-01T17:09:24+00:00

I have a tab bar controller view that loads a record from an api

  • 0

I have a tab bar controller view that loads a record from an api call. Since different data is shown for the same record on each tab I’m storing the object in the app delegate and just grabbing it on viewDidLoad.

The problem I’m running into is that this record is related to other records, and one of the tabs has the other records listed. So if you click on one of those it needs to essentially reload the same tab bar controller.

I’m going to reload the same controller using the instantiateViewControllerWithIdentifer method, but how would the back button work on this since if it went back that object is now gone.

My thoughts on reloading old objects was to keep an array of all the ids of the records loaded, and just go back to the last id and reload the object from the api.

  • 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-01T17:09:25+00:00Added an answer on June 1, 2026 at 5:09 pm

    For what you are trying to do, I would suggest creating your own custom implementation of a tab bar controller. By doing this you will be able store the data from each record as a property in your custom tabbar controller. You can then have multiple instances of your tab bar controller, each with its own data (and you won’t have to store anything in your app delegate, which ideally shouldn’t be used for this purpose anyway.)

    Here is an example tutorial in which the author creates a custom tab bar controller similar to what you would need:

    http://www.iphonedevcentral.com/create-uitabbarcontroller/

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

Sidebar

Related Questions

I have a tab bar driven app. The app has some view controllers that
I have a tab bar controller and in both tab bar items i have
I have a Tab Bar Controller created in Interface Builder Within the Tab Bar
Let's have an example. In application I have a tab bar controller. Tab bar
I have a tab-bar and navigation controller application (like Youtube app or Contacts app).
In my application I'm using a Navigation Controller to push one view that loads
Here's the setup: I have a tab bar controller with two tabs. There is
I have an application set up where the window contains a tab bar controller
I have a tab bar that is created programmatically and I'm having difficulties initializing
I have three views that I switch between using a tab bar, and the

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.