According to the docs NSURLConnectionDelegate
connection:canAuthenticateAgainstProtectionSpace:
connection:didReciveAuthenticationChallenge:
connection:didCancelAuthenticationChallenge:
outdated and the new code should accept
connection:willSendRequestForAuthenticationChallenge
Senior delegates will still be called to ensure compatibility, but they will spend more time considering the authentication problem.
source
share