- (IBAction)startDownloadingURL:(id)sender
{
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/index.html"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
NSURLDownload *theDownload=[[NSURLDownload alloc] initWithRequest:theRequest delegate:self];
if (!theDownload) {
}
}
When I run the simulator, I received an error message:
NSURLDDownload undeclared, first use this function.
Where can I import the NSURLDownload library.
source
share