troubleshooting Question

Loading screen IOS

Avatar of David11011
David11011Flag for United States of America asked on
4 Comments1 Solution1362 ViewsLast Modified:
I've created an IOS app that has two view controllers. The first view controller loads fairly quickly when you first open the app but when I push to the second view controller it takes around ten seconds to load.

As it is right now, once I push the button to switch to the next view controller, the app appears to freeze and the button remains highlighted allowing no user interaction with the app. I would like to have an animated loading screen displayed while the view controller is loading so that the user doesn't think the app is freezing up.

I've looked online for ways to preload the VC so I can display the loading screen in VC1 while VC2 is loading and then push to VC2 but haven't found anything like that.

Right now all of the audio files are what is causing most of the load time. I have all of the audio files being loaded in the viewDidLoad. I've looked for a way to display something in the view controller before the viewDidLoad but haven't found anything.

Any help you can give would be appricieated. Thanks.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros