开发者

multithreading library for iPhone/iPad

开发者 https://www.devze.com 2023-01-15 07:15 出处:网络
I have been developing an iPad application in which I want to implement multithreading, so that I can use background threads for network communication.

I have been developing an iPad application in which I want to implement multithreading, so that I can use background threads for network communication.

I tried NSThread and NSOperation but I can't get a proper mechanism fo开发者_StackOverflowr thread communication in NSThread and the application crashes randomly when I use NSOperation and NSOperatioQueue....

There is a library called ThreadWorker but it works only on Mac not iPhone/iPad.

So please tell me a good library or method for multithreading in iPhone!

Thanks


I would recommend ASIHTTPRequest. http://allseeing-i.com/ASIHTTPRequest/


I tell you a good library for network programming: Multithreaded network programming can be painful. If possible use CocoaAsyncSocket for your networking. This provides you nice delegate methods that are executed on your main thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号