Avatar of David11011
Flag for United States of America asked on

Loading screen IOS

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.

Avatar of undefined
Last Comment

8/22/2022 - Mon


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks for the very complete answer!

You are welcome
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes