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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:39:22+00:00 2026-06-14T01:39:22+00:00

In an IPhone app I am making, I have an initialViewController (1) with a

  • 0

In an IPhone app I am making, I have an initialViewController

(1) with a button. Once the button is clicked, it segues to another View Controller

(2), which at that point loads data from a CoreData File and displays it to the user.

My issue is that there is a small delay between the loading of (2) and the actual Display of the data. That is of course because the data takes a little moment to be loaded. I am doing it asynchronously, and my goal is to never show a spinning wheel or a loading screen (more user friendly).

What I want to do is to "preload" the data at (1), not at (2), that way data should have already been loaded by the time (2) loads and should be displayed immediately. I know how to load the data at (1), but I have no idea how to easily pass it along to (2). I can’t do it with a segue because my app is actually a bit more complicated than the description above and it’s a hassle to do it via segue.

I have heard it is possible to use the "AppDelegate" but as I am new to programming I have no idea how to use it effectively. The online classes I’ve been following do not give very clear insight on how to use it, so I’m a bit lost.

  • 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-14T01:39:23+00:00Added an answer on June 14, 2026 at 1:39 am

    After seeing your comment on Paras’s post, I have a better solution for you:

    Create a subclass of NSObject called fileLoader

    //in fileLoader.h
    @interface fileLoader : NSObject {
    }
    +(fileLoader *)sharedInstance;
    +(void)createSharedInstance;
    //add functions and variables to load, store data for use in another class
    @end
    

    Then,

    //in fileLoader.m
    @implementation fileLoader
    static id _instance;
    
    
    +(void)createSharedInstance{
        _instance = [[fileManager alloc] init];
    }
    +(fileManager *)sharedInstance{
        return _instance;
    }
    //other functions for storing, retrieving, loading, standard init function, etc.
    

    @end
    Now you can call [fileManager createSharedInstance] to instantiate a file manager that you can use from anywhere by calling functions on [fileManager sharedInstance].

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

Sidebar

Related Questions

I am making an IPhone app and I have a table view that is
I am making an iPhone app. I have a code that is in C.
I'm having some trouble with an iPhone app that I'm making. I have two
I am making an iPhone app in which I have made a custom activity
I am making an iPhone app in which I have used both, the navigation
I'm making an iPhone app that uses Core Plot at one point in the
I will be making an iPhone app that will sell ebooks. we have a
I am making an Iphone app and I have a user click a button
I am making an iPhone app. In this app I have a UITableView which
I'm making a tab bar iphone app and I wanted to have an animated

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.