添加以下行:
completionHandler(NSURLSessionAuthChallengeDisposition.UseCredential, credential)
at the end of
didReceiveAuthenticationChallengesolved the problem.

添加以下行:
completionHandler(NSURLSessionAuthChallengeDisposition.UseCredential, credential)
at the end of
didReceiveAuthenticationChallengesolved the problem.