开发者

Cancel one request in ASINetworkQueue

How to cancel a particular request in asinetworkqueu开发者_开发百科e?


[queue operations]; will return an NSArray of items in the queue, which you can then iterate and call cancel on any request you like.

Something like:

for (ASIHTTPRequest *req in [queue operations])
{
    if (shouldCancel(req))
        [req cancel];
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜