iOS Developer Question:

How to start a thread?

Tweet Share WhatsApp

Answer:

- (void)performSelectorInBackground:(SEL)aSelector withObject:(id)arg on NSObject
NSThread* evtThread = [ [NSThread alloc] initWithTarget:self
selector:@selector( saySomething )
object:nil ];
[ evtThread start ];

Download iOS Developer PDF Read All 102 iOS Developer Questions
Previous QuestionNext Question
Explain me how to parse xml?What are Selectors in Objective-C?