ASIHTTPRequest和NSOperations - 有没有其他方法可以实现多线程?

时间:2011-07-29 12:37:41

标签: iphone objective-c multithreading xcode cocoa-touch

除了ASIHTTPRequest并使用NSOperations还有哪些方法可以实现多线程?如果有任何其他方法可以实现多线程,请提供链接。 我们也可以为AudioStreaming实现多线程以从url中检索..

1 个答案:

答案 0 :(得分:0)

看看这个方法:

[NSThread detachNewThreadSelector:@selector(entryPointMethodForSecondThread) toTarget:objectWhereEntryPMethodDeclarated withObject:nil];

请注意,您必须在“入口点方法”中为其创建自动释放池。 详细信息请查看NSThread规范。