2

I'd like to understand what the difference is between using –initWithRequest:delegate: with delegate methods and +sendAsynchronousRequest:queue:completionHandler:.

Are there some performance differences based on the number of requests, or any other criteria?

Moxy
  • 4,162
  • 2
  • 30
  • 49

1 Answers1

3

sendAsynchronousRequest:queue:completionHandler is an easier call to make. initWithRequest:delegate gives you more control over things like caching, redirects, downloading large or incremental amounts of data, canceling requests, etc, etc.

Macmade
  • 52,708
  • 13
  • 106
  • 123
EricS
  • 9,650
  • 2
  • 38
  • 34