iOS Developer Question:
Download Job Interview Questions and Answers PDF
How to start a thread?
Answer:
- (void)performSelectorInBackground:(SEL)aSelector withObject:(id)arg on NSObject
NSThread* evtThread = [ [NSThread alloc] initWithTarget:self
selector:@selector( saySomething )
object:nil ];
[ evtThread start ];
NSThread* evtThread = [ [NSThread alloc] initWithTarget:self
selector:@selector( saySomething )
object:nil ];
[ evtThread start ];
Download iOS Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me how to parse xml? | What are Selectors in Objective-C? |