iOS Developer Question:

Download Job Interview Questions and Answers PDF

How to start a thread?

iOS Developer Interview Question
iOS Developer Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me how to parse xml?What are Selectors in Objective-C?