NSInvocationOperation* theOp = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(myTaskMethod:) object:data];
[[MyAppDelegate sharedOperationQueue] addOperation:theOp];
为什么sharedOperationQueue这个方法显示not found ,是需要加什么framework么,还是其他的什么东西。
------解决方案--------------------
sharedOperationQueue 这个是整个APP的Singleton对象啊 。
和framework诶关系。