2015-12-30 48 views
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); 
+1

歡迎堆棧溢出!如果你自己遇到這樣的格式化問題,你會被鼓勵回答嗎?請查看「如何問問」頁面:http://stackoverflow.com/help/how-to-ask。 – Roope

回答

相關問題