I have a button in the current navigation controller view connected to IBAction.
In IBAction, I create a UIActivityIndicatorView, as usual, with [self.view addSubView], then upload some images.
I tried setNeedsDisplay in the indicator view, view controller and window, but it still uploads photos before the indicator displays, which, of course, is completely useless to me.
So, I'm looking for a way to force an instant redraw (which, when I think a little more about this is unlikely to do the job), or a way to load images after the indicator appears, or a way to start a separate thread or similar to start the animation / show the indicator, or put the indicator in a separate view manager and somehow make it add / show itself before moving on to loading the image.
Recommendations
ios objective-c cocoa-touch loading uiactivityindicatorview
Henrik erlandsson
source share