I am running creating an iPhone application which performs a costly operation and I wanted to create an activityIndicator to let the user know the application has not frozen.
The operation is performed entirely in one event call... so there is no chance for the UI framework to receive control to actually display and animate this indicator.
The sample apps which use the UIActivityIndicator (or any other similar animation) start and stop the animation in different events, triggered separately at different stages of the program.
Do I need to manually create a separate thread to run my operation in, or is there already default support for this kind of behavior?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…