读书人

用 NSInvocationOperation创设线程 需

发布时间: 2012-08-21 13:00:22 作者: rapoo

用 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诶关系。

读书人网 >Iphone

热点推荐