My app displays PDF files from a list. I am struggling to understand the File Management in iOS. I read the guide here but it isn't helpful: https://developer.apple.com/library/mac//documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010672
I don't get how to access the /tmp
folder to write to it. I guess I'll need to use NSURLConnection
with URLsForDirectory:inDomains:
method. But I do not know what parameter the URLsForDirectory:inDomains:
method takes to return the temporary directory and how to convert NSData*
from NSURLConnection
to PDF file.