NSUserDefaults Settings Bundle Plist

后端 未结 2 1686
星月不相逢
星月不相逢 2021-01-25 00:15

I have an app that checks for a file upon load from the appDelegate\'s appDidFinishLoading method using a url value that I supposedly store in the NSUserDefaults Settings Root P

2条回答
  •  遥遥无期
    2021-01-25 00:25

    Turns out I was missing this line:

    nsUserDefURL = [[NSUserDefaults standardUserDefaults] stringForKey:kFirstNameKey];  
    

    But this only reads the default value each launch. It won't save the user modified value in the app settings. Why is that value not being saved?

提交回复
热议问题