我创建了一个 NSInvocationOpertion 对象,如下所示
NSString *myString = @"Jai Hanuman";
NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(taskMethod) object:myString];
NSOperationQueue *operatioQueue = [[NSOperationQueue alloc] init];
[operatioQueue addOperation:operation];
谁能告诉我如何访问 taskMethod 中的 myString 对象?是否可以?
- (void)taskMethod{
NSLog(@"Oh! Invocation's working buck");
}