0
UIWebView
인증을 위해 NSURL
연결을 생성 중입니다. 괜찮 으면 좋겠지 만 어떤 이유로 권한을 부여받을 수는 없습니다. 잘못된 암호를 입력하면 올바른 암호로 다시 로그인 할 수 없습니다. NSURLconnection
을 종료하는 가장 좋은 방법은 무엇입니까?NSURLConnection ios를 종료하십시오
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
NSString *errorText = [[error userInfo] description];
NSLog (@"----------------------------------------------");
NSLog (@"STEP 4 - connection didFailWithError");
NSLog (@"Error message: %@", errorText);
connection = nil;
}
하지만 어떤 이유로 작동하지 않습니다 :
나는이 시도.
접속을 마킹하기 전에 API 호출을 취소하려고 했습니까? http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html – Saurabh
포인터를 nil로 설정하면 아무런 효과가 없습니다. – Felix