NSURLRequest有多个网址!

时间:2011-03-01 22:13:37

标签: iphone pdf sdk nsurlconnection nsurlrequest

嘿,我正在使用NSURLRequest和NSURLConnection下载pdf。

  

NSURLRequest * theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@“MyPDF.pdf”] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:10.0];
  NSURLConnection * theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];

我怎么能这样做,我可以在NSURLRequest行中有多个URL链接到PDF?而不是只有一个URL“MyPDF.pdf”。

提前致谢!


Jacob L

1 个答案:

答案 0 :(得分:1)

你做不到。如果您想要请求多个PDF(或其他),您需要发出多个请求。