How can I cancel an asynchronous call through NSURLConnection sendAsynchronousRequest?

前端 未结 2 950
星月不相逢
星月不相逢 2020-12-03 16:21

I\'ve got a web service call performing some validation on user input in real time. I\'d like to use [NSURLConnection sendAsynchronousRequest] on the validatio

2条回答
  •  难免孤独
    2020-12-03 16:45

    It doesn't appear that there is a good way to do this. The solution seems to be to not use the new [NSURLConnection sendAsynchronousRequest] in situations in which you need to cancel the request.

提交回复
热议问题