1

I am using sendAsynchronousRequest:queue:completionHandler: class function of nsurlconnection .How shall I cancel the this connection?

NSCry
  • 1,662
  • 6
  • 23
  • 39

1 Answers1

1

You can't. If you need the option to cancel an URL request, you have to use the delegate-based methods of NSURLConnection, e.g. connectionWithRequest:delegate:.

Martin R
  • 529,903
  • 94
  • 1,240
  • 1,382