Easy function to get the path to the documents directory for data persistance
Here is a simple function that will return the path to the documents directory so you can store data in it later
Copy this code and paste it in your HTML
{
NSArray *paths
= NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask,
YES);
NSString *documentsDirectory
= [paths objectAtIndex
:0];
return documentsDirectory;
}
Report this snippet
Comments
Subscribe to comments