¡@

Home 

2014/10/15 ¤U¤È 10:12:56

iphone Programming Glossary: processingmethod

NSRunloops and forcing event processing

http://stackoverflow.com/questions/723608/nsrunloops-and-forcing-event-processing

separate private method and then do this ActivityIndicator sharedActivityIndicator show self performSelector @selector processingMethod withObject nil afterDelay 0 That will cause processingMethod to be called at the end of the run loop after your indicator.. show self performSelector @selector processingMethod withObject nil afterDelay 0 That will cause processingMethod to be called at the end of the run loop after your indicator is showing. Should work fine. The one caveat is that if your.. fine. The one caveat is that if your indicator is animated depending on how it's set up it may not be animated while processingMethod is running. In that case you'd want to run processingMethod in a background thread which might be a little more complicated..