开发者

Connect and downlaod content with socket in iphone sdk

Hi I want to use socket programming for downlaoding HTML from the server. Any body can give suc开发者_开发问答h a sample code.


The framework you're looking for is here: http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html

Sockets would be needless headache in this case.


-(void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode

works for me.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜