Monday, December 16, 2013

Create a thread to be added with NSInvocationOperation what framework it

NSInvocationOperation * theOp = [[NSInvocationOperation alloc] initWithTarget: self selector: @ selector (myTaskMethod :) object: data];

[[MyAppDelegate sharedOperationQueue] addOperation: theOp];
Why sharedOperationQueue This method shows not found, is the need to add any framework, or do something else.
Reply:
This is the entire APP sharedOperationQueue Singleton object ah.
And framework eh relationships.

Reply:
I wrote this method can be used.
APP's Singleton object refers to what?
Reply:
The reply was deleted at the moderator 2012-01-11 11:43:12

No comments:

Post a Comment