Code Bye

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

 

NSInvocationOperation* theOp = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(myTaskMethod:) object:data];

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


40分
sharedOperationQueue 这个是整个APP的Singleton对象啊  。
和framework诶关系。
我自己写了这个方法,可以用了。
APP的Singleton对象是指什么?

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明用 NSInvocationOperation创建线程 需加什么framework么