NSURLConnectionDelegate connection:didReceiveData not working

Posted by Shibin Moideen on Stack Overflow See other posts from Stack Overflow or by Shibin Moideen
Published on 2010-05-13T07:11:14Z Indexed on 2010/05/13 7:14 UTC
Read the original article Hit count: 384

Hi All,

I need some help regarding the NSURLConnectionDelegate method.

- (void)startDownload {
NSString *URLString = [NSString stringWithFormat:appRecord.imageURLString]; 
NSURL *url = [NSURL URLWithString:URLString];   
NSURLRequest *request = [NSURLRequest requestWithURL:url];

imageConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];  
if(imageConnection) {
    activeDownload = [NSMutableData data];
}

}

I am using this method to initiate the NSURLConnection, but the

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data

is not calling.. Need Help

Thanks in advance, Shibin

© Stack Overflow or respective owner

Related posts about nsurlconnection

Related posts about iphone