たくさん検索しましたが、ドキュメントフォルダからvfr-readerでPDFを開くことができません。
NSString *filePath = @"/Users/***/Library/Application Support/iPhone Simulator/5.0/Applications/F2B7E9DE-9996-4F05-BC81-2A2889B4F504/Documents/Number1.pdf";
ReaderDocument *document = [ReaderDocument withDocumentFilePath:filePath password:password];
if (document != nil)
{// document comes nil here
ReaderViewController *readerViewController = [[ReaderViewController alloc] initWithReaderDocument:document];
readerViewController.delegate = self; // Set the ReaderViewController delegate to self
[self.navigationController pushViewController:readerViewController animated:YES];
}
filepathは正確にpdfファイルであると確信しています。
リーダーのサンプルコードでは、メインバンドルからPDFを開きます。しかし、私はリソースフォルダから開く必要があります。
ありがとう