connection:didReceiveAuthenticationChallenge:
認証しなければいけないときに呼び出されます
-(void)connection:(NSURLConnection *)connection: didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge:
解説
認証しなければいけないときに呼び出されます。
返り値
( void )
なし
引数
( NSURLConnection * )connection
( NSURLAuthenticationChallenge * )challenge
フレームワーク
Foundation
クラス
NSURLConnection
Instance Methods
使用可能
10.2.7(10.2+safari)
参照
-cancelAuthenticationChallenge:
-continueWithoutCredentialForAuthenticationChallenge:
-useCredential:forAuthenticationChallenge:
例文
//認証しなければいけないときに呼び出されます。 -(void)connection:(NSURLConnection*)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge { NSLog(@"didReceiveAuthenticationChallenge"); }