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];
}
精彩评论