Top "Nsdocumentdirectory" questions

An iOS application concept to let applications access the file system from their sandboxed environment.

Retrieve file creation or modification date

I'm using this piece of code to try to retrieve the last modified date of a file: NSError *error = nil; …

ios objective-c xcode last-modified nsdocumentdirectory
Read a .txt file inside documents directory

How can I read a .txt file inside documents directory? Can you show me code?

ios nsdocumentdirectory
How to read pdf file from document directory in iPhone?

Currently i am working in iPhone application, i have an pdf file in resource folder (Local pdf file) then i …

iphone ios multithreading nsdocumentdirectory pdf-reader
NSSearchPathForDirectoriesInDomains returns the wrong directory

I'm using NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) to get the application documents directory in my app, but the array that's returned …

objective-c ios cocoa-touch nsdocumentdirectory
Document directory path change when rebuild application

I download the video file from url and save it in document directory with this path: let destination: DownloadRequest.DownloadFileDestination = { _, _ …

ios swift filepath nsdocumentdirectory
How to convert code objective c to Swift to save image?

I have seen this code in other post, for save pictures: // Create path. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *…

path avfoundation swift nsdocumentdirectory
iOS takes a screenshot of App every time it is sent to the background - How would I secure my App?

Every time security of Apps comes up, it turns out a lot of people are unaware of this being an …

ios iphone security nsdocumentdirectory
CFURLSetResourcePropertyForKey failed when disable data backup on NSDocumentDirectory

I am trying to download image files and store in NSDocumentDirectory. In order to do so, I has to turn …

ios nsdocumentdirectory
Remove all files from within documentDirectory in Swift

I am making an audio app, and the user can download files locally stored to the documentDirectory using FileManager. Next, …

ios swift nsdocumentdirectory
max length of file name

i am using the code below to save an image in the NSDocumentDirectory -(BOOL)saveImage:(UIImage *)image name:(NSString *)…

iphone nsfilemanager nsdocumentdirectory