質問がありました。たとえば、.epub や PDF などの電子ブック ファイルをダウンロードできるとしたら、このファイルを にリストし、tableview
そのうちの 1 つを選択します。
iBook から開くことはできますか?
または、ファイルを開くためにリーダーを実装する必要がありますか?
別の質問もあり、自分のフォルダーに pdf ファイルをダウンロードします
ログアウトするパスは正しく見えます
コードは次のとおりです。
NSString *docPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)objectAtIndex:0];
NSString *ePubSubFolder = [docPath stringByAppendingPathComponent:@"Books"];
NSString *pdfPath = [ePubSubFolder stringByAppendingPathComponent:[NSString stringWithFormat:@"%@",self.pdfFileName]];
CFURLRef pdfURL = CFURLCreateWithFileSystemPath (NULL,(CFStringRef)pdfPath, kCFURLPOSIXPathStyle, FALSE);
NSLog(@"PDF URL: %@", pdfURL);
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CFRelease(pdfURL);
ログ結果は
../iPhone%20Simulator/4.3.2/Applications/06BA5929-3531-4AC3-B524-6CC74DC7E2C9/Documents/Books/Repeat%20After%20Me%20User's%20Guide.pdf
私は何か間違ったことをしましたか?私のビューには何も表示されません。
すべての返信または回答に感謝します:-)