Ios NSURL连接混乱

Ios NSURL连接混乱,ios,nsurlconnection,Ios,Nsurlconnection,我需要为NSURLConnection提供一名代表,帮助说明: + (NSURLConnection *)connectionWithRequest:(NSURLRequest *)request delegate:(id < NSURLConnectionDelegate >)delegate 太好了。但《使用NSURLConnection》用户指南指出: 为了下载URL的内容,应用程序需要提供至少实现以下委托方法的委托对象:connection:didReceiveRespon

我需要为NSURLConnection提供一名代表,帮助说明:

+ (NSURLConnection *)connectionWithRequest:(NSURLRequest *)request delegate:(id < NSURLConnectionDelegate >)delegate
太好了。但《使用NSURLConnection》用户指南指出: 为了下载URL的内容,应用程序需要提供至少实现以下委托方法的委托对象:connection:didReceiveResponse:、connection:didReceiveData:、connection:didFailWithError:和connectionDidFinishLoading:


这些方法与NSURLConnectionLegate的帮助中提到的方法几乎没有任何共同之处。有人能解释一下吗?

看起来文档缺少一些委托方法。看看这里有没有好的导游我同意罗格的看法。文件似乎是错误的,而不是实际的协议。只需按照
连接:didReceiveResponse:
等建议执行您的程序。
– connection:willSendRequestForAuthenticationChallenge:
– connection:canAuthenticateAgainstProtectionSpace:
– connection:didCancelAuthenticationChallenge:
– connection:didReceiveAuthenticationChallenge:
– connectionShouldUseCredentialStorage:
– connection:didFailWithError: