There are several ways to approach this. The quick and dirty way would be throw up an activity sheet with no buttons that says "Loading". You will probably need to refactor your code so that the long processing code comes after the UI has displayed. When the code finishes, remove the loading action sheet.
Another option would be to do the above, but move the long processing code to a separate thread. Once the thread returns remove the "loading" action sheet.
A third option would be to use either of the methods above, but instead of an action sheet, use a view that covers the screen, partially opaque, with "Loading" and the loading indicator icon (available in interface builder).
Quote:
Originally Posted by dragon_tenvel
Hi everybody!
I have another problem, my tabs take a long time to load so I would like to display an Activity Indicator on the screen as soon as a tab is touched. Problem is, I have no clue of how I'm supposed to do it...
I would very much appreciate some help on that... Thanks in advance 
|