1
我正在使用sendAsynchronousRequest:queue:completionHandler:
nsurlconnection的类函数。如何取消此连接?如何在nsurlconnection中使用类方法时取消非连接
我正在使用sendAsynchronousRequest:queue:completionHandler:
nsurlconnection的类函数。如何取消此连接?如何在nsurlconnection中使用类方法时取消非连接
你不能。如果您需要取消URL请求的选项,则必须使用NSURLConnection
的基于代理的方法,例如, connectionWithRequest:delegate:
。