How to start a thread?



How to start a thread?..

Answer / Swarn Singh

To create and start a new thread in Apple iOS, you can use the `NSThread` class. Here's an example:

NSThread *myThread = [NSThread alloc] initWithTarget:target selector:selector object:argument];
[myThread start];

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Explain the difference between nil and nil?

1 Answers  


What is id in ios?

1 Answers  


What happens when you invoke a method on a nil pointer?

1 Answers  


Would I be able to keep in touch with some c++ work in the equivalent .m record? Will it compile? Assuming no, what changes would it be a good idea for me to do to compile it?

1 Answers  


What is UICollectionView ?

1 Answers  


How to change the content of your app in order to change the views displayed in the corresponding window?

1 Answers  


How to delete images in ios?

1 Answers  


Which is easier android or ios development?

1 Answers  


What is nsuserdefaults?

1 Answers  


What’s the difference between mkannotation and mkpointannotation?

1 Answers  


What is difference between performblock: and performblockandwait:?

1 Answers  


What is the architecture of ios?

1 Answers  


Categories