开发者

NSURLDownload Cancelling

开发者 https://www.devze.com 2022-12-16 17:10 出处:网络
So I am using NSURLDownload in a program, and it requires that I give the user an option to cancel the donwload.I tried using the -cancel method but it only works up until the device starts receiving

So I am using NSURLDownload in a program, and it requires that I give the user an option to cancel the donwload. I tried using the -cancel method but it only works up until the device starts receiving data at which point i cannot find a way to stop i开发者_运维问答t. any ideas?


I recommend using the ASIHTTPRequest library that provides a lot of nice abstractions and utility methods.

To cancel a request in the library, you can just do [request cancel]! Take a look at "How to use" code sample page.

0

精彩评论

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