当前位置: 代码迷 >> Iphone >> 用 NSInvocationOperation创设线程 需加什么framework么
  详细解决方案

用 NSInvocationOperation创设线程 需加什么framework么

热度:86   发布时间:2016-04-25 06:30:52.0
用 NSInvocationOperation创建线程 需加什么framework么
NSInvocationOperation* theOp = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(myTaskMethod:) object:data];

[[MyAppDelegate sharedOperationQueue] addOperation:theOp];
为什么sharedOperationQueue这个方法显示not found ,是需要加什么framework么,还是其他的什么东西。

------解决方案--------------------
sharedOperationQueue 这个是整个APP的Singleton对象啊 。
和framework诶关系。
  相关解决方案