2
NSURLRequest *req = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:self.urlString]];
NSURLConnection *con = [[NSURLConnection alloc]
initWithRequest:req
delegate:self
startImmediately:NO];
[con scheduleInRunLoop:[NSRunLoop currentRunLoop]
forMode:NSRunLoopCommonModes];
[con start];
if (con) {
self.receivedData=[[NSMutableData alloc] init];
} else {
...
}
[req release];
이 코드를 사용하여 이미지를 다운로드하고 있습니다.다운로드하는 동안 NSLURLConnection을 중지/닫기하는 방법
다운로드 중에 어떻게 다운로드를 중단하고 연결을 닫을 수 있습니까?
감사합니다. 니가 날 많이 도와 줬어. – mrde