Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想了解使用–initWithRequest:delegate:委托方法和+sendAsynchronousRequest:queue:completionHandler:.
–initWithRequest:delegate:
+sendAsynchronousRequest:queue:completionHandler:
是否存在基于请求数量或任何其他标准的性能差异?
sendAsynchronousRequest:queue:completionHandler是一个更容易打的电话。initWithRequest:delegate让您可以更好地控制缓存、重定向、下载大量或增量数据、取消请求等。
sendAsynchronousRequest:queue:completionHandler
initWithRequest:delegate