0
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
NSString *pdfFilePath =[basePath stringByAppendingPathComponent:@"myPDF.pdf"];
NSLog(@"pdf file %@",pdfFilePath);
歡迎堆棧溢出!如果你自己遇到這樣的格式化問題,你會被鼓勵回答嗎?請查看「如何問問」頁面:http://stackoverflow.com/help/how-to-ask。 – Roope