NSInvocationOperation生成的操作在其选择器完成时是否完成?

时间:2014-03-09 07:47:01

标签: ios nsoperationqueue nsinvocationoperation

如果我通过NSOperation创建NSInvocationOperation,那么所选选择器的完成是否会导致NSOperation完成并从操作队列中删除?

例如:

...
NSDictionary* params = @{KEY_SERVER_ID:serverId, KEY_USERNAME:username, KEY_PASSWORD:password};
NSInvocationOperation* op = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(publishBulletinBoardRead:) object:params];
[[NSOperationQueue currentQueue] addOperation:op];
...

publishBulletinBoardRead:返回时,我可以假设操作已从队列中删除吗?

0 个答案:

没有答案