Wednesday, 15 January 2014

iphone - executing two methods parallely -


I want to execute two methods in parallel. What should I do and how is it possible? Is it possible to use NSThread? If yes, then how?

You can do NSOperation

Code> and NSThread , is the easiest way to execute the methods in the background or:

  // executed method1 and method2 in parallel [auto display chooser Inbound: @ Object with Selection (method 1): zero]; [Self-Performance Selector Inboxground: Object with "Signature" (Method 2): Zero];  

However, I think you need to create a new NSAutoReleasePool for those methods.

In general, I would recommend reading.


No comments:

Post a Comment