¡@

Home 

2014/10/15 ¤U¤È 10:11:49

iphone Programming Glossary: mythreadtemp

iPhone: how to use performSelector:onThread:withObject:waitUntilDone: method?

http://stackoverflow.com/questions/2584394/iphone-how-to-use-performselectoronthreadwithobjectwaituntildone-method

myThread @end @implementation MyObject @synthesize myThread _myThread NSThread myThread if _myThread nil NSThread myThreadTemp NSThread alloc init myThreadTemp start self. myThread myThreadTemp myThreadTemp release return _myThread id init if self.. MyObject @synthesize myThread _myThread NSThread myThread if _myThread nil NSThread myThreadTemp NSThread alloc init myThreadTemp start self. myThread myThreadTemp myThreadTemp release return _myThread id init if self super init self performSelector.. NSThread myThread if _myThread nil NSThread myThreadTemp NSThread alloc init myThreadTemp start self. myThread myThreadTemp myThreadTemp release return _myThread id init if self super init self performSelector @selector privateInit onThread self..