Я могу успешно просмотреть PDF файл с веб-сайта. Я хочу, чтобы иметь возможность загрузить этот PDF файл на устройство, затем получить доступ к этому файлу локально.
Когда приложение будет открыто, оно проверит дату онлайн-PDF. Если он новее, чем локально сохраненный PDF файл, приложение будет загружать новый, иначе он откроет локально сохраненный PDF файл.
Используемый мной код:
PDFAddress = [NSURL URLWithString:@"http://www.msy.com.au/Parts/PARTS.pdf"];
request = [NSURLRequest requestWithURL:PDFAddress];
[webView loadRequest:request];
webView.scalesPageToFit = YES;
Как я могу это достичь?