Avatar of David11011
David11011Flag 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.
iPhoneiOS

Avatar of undefined
Last Comment
pgnatyuk
Avatar of David11011
David11011
Flag of United States of America image

ASKER

/bump
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of David11011
David11011
Flag of United States of America image

ASKER

Thanks for the very complete answer!
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

You are welcome
iPhone
iPhone

The iPhone is a smartphone made by Apple Inc. It and the iPad, along with several other mobile devices from Apple, run on the iOS operating system, which has its own topic, as does the iPad for device-specific questions. Native iOS applications are written in Objective-C or in Swift using the Cocoa Touch frameworks or HTML5 compiled with the help of a package manager such as Adobe PhoneGap; a common IDE is Xcode.

10K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo