I\'m trying to write a simple array to a plist file and then later on retrieve it. I have the following code:
+ (NSString*) dataFilePath
{
NSArray *paths = N
Do you really want to write in NSDocumentationDirectory
directory? I think, this directory is not created by default (so you must make it before).
Perhaps you wanted NSDocumentDirectory
. I tried it and your code works.
Again, Xcode's stupid autocomplete made you lost: NSDocumentationDirectory
should really be NSDocumentDirectory
.
The Documentation directory doesn't exist on iOS, so you can't write there.