
怎么取消一个NSURLConnection 的异步请求?
当用户输入的时候我要实现个到webservice的验证,用的是[NSURLConnectionsendAsynchronousRequest],但是想,如果用户修改了输入...
当用户输入的时候我要实现个到web service的验证,用的是[NSURLConnection sendAsynchronousRequest],但是想,如果用户修改了输入的内容的话,就即时取消这个月异步请求,这个取消怎么做?
展开
1个回答
2013-09-02
展开全部
cancelCancels an asynchronous load of a request.- (void)cancelDiscussionAfter this method is called, the connection’s delegate no longer receives any messages for the connection. If you want to reattempt the connection, you should create a new connection object.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询