plist file not being found

后端 未结 2 713
忘掉有多难
忘掉有多难 2021-01-28 06:11

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         


        
2条回答
  •  猫巷女王i
    2021-01-28 06:59

    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.

提交回复
热议问题