modifying a plist is not working

后端 未结 3 1350
陌清茗
陌清茗 2020-12-07 04:47

i have to modify a BOOL value in my plist file stored with the bundle.i am able to access the dictionary which i have to modify .from nslogging i can see that dict is update

3条回答
  •  再見小時候
    2020-12-07 05:39

    You must store your plist in the documents directory. After that, you must also save the plist upon leaving the app. Otherwise, the plist is in the main bundle and cannot be modified.

提交回复
热议问题