从网址获取数据并保存在ipad中

时间:2012-06-22 10:25:16

标签: ios objective-c ipad pdf fetch

当您点击该链接时,我需要在iPad中保存pdf / doc文档。我试图从http://meme.hcl.com/sites/default/files/243347_TroubleShootingSqlserver20052008.pdf获取数据,并尝试在iPad中保存此pdf。但我无法做到这一点。请帮帮我。

myGroupsBeanData = [self.groupLinksDocumentsArray objectAtIndex:indexPath.row];
 NSString *seperator=@"meme.hcl.com/";;
 documentName=[NSString stringWithFormat:@"%@%@",seperator,myGroupsBeanData.linkVal];    
 responseData = [[NSMutableData alloc] init];
 webserviceType = GET_PDF_DATA;
 NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:documentName]];
 [[NSURLConnection alloc] initWithRequest:request delegate:self];

0 个答案:

没有答案