リンクをたどってPDFページを作成しています...
http://mobile.tutsplus.com/tutorials/iphone/generating-pdf-documents/?search_index=3
以下の方法を使用してこの PDF ファイルを削除することはできません。エラー行にコメントしました...
self.fileMgr = [NSFileManager defaultManager];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *pdfPath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.pdf",[self.tablePdfListArray objectAtIndex:indexPath.row]]];
if([self.fileMgr fileExistsAtPath:pdfPath] == YES)
{
[fileMgr removeFileAtPath: pdfPath error:nil]; //No visible @interface for NSFilemanager declares the selector removeFileAtPath
}
提案していただけませんか。前もって感謝します。