I am loading 6 NSArray‘s with UIImages in viewDidLoad. I do this using GCD so there is no impact on the user experience.
One issue I am hang is that during the initial transition to this page, the arrays take approx seconds to load. I have an animation that kicks off at certain times when the view is rendered. Depending on the users hardware, the away car run longer than expected in the background.. and not be loaded at the time the animation is called.
So, my general question is, how can I wait to start an animation until I am sure the array is loaded?
Is there a way to check the size of the array, and if it is empty, wait and re-try in 1 second?
I hope this makes sense.
Thanks.
1 Answer