Why should I prefer ASIHTTPRequest over NSURLConnection for downloading files from the web?

后端 未结 4 516
北荒
北荒 2020-12-29 07:18

I\'ve seen a couple of times people using ASIHTTPRequest to download files. Now I wonder why? What are the core benefits over NSURLConnection?

4条回答
  •  天命终不由人
    2020-12-29 08:10

    IMHO it comes down to ease of use for the programmer. It's very easy to work with and is incredibly well documented. You can very easily use queues and manage their status via delegation.

    Outside the scope of files it is must easier to handle response delegation using ASI compared to the built in NSURL classes.

提交回复
热议问题