Update UIProgressBar across view controllers
Hey guys, so I have a view with a button that, when pressed, loads a scrollview with many png images. Since loading takes a little bit (about 3 seconds) I would like to have a UIProgressBar update on the first view based on how many images are finished loading before the view transitions to the scrollview;
I have tried so many things to update the ProgressBar. One was by using global variables that both views can access. I have also tried updating the UIProgressBar in viewDidLoad(), viewWillAppear(), and viewDidDisappear() methods, but whenever I press the button that loads the images, the ProgressBar never changes.
Does anybody know a way to update the ProgressBar across view controllers like this?
Thanks in advance!
Oh BTW, I'm trying to do this within a view-based app, in case that wasn't clear.
|