How to use NSUbiquitousKeyValueStore and NSUserDefaults together

后端 未结 3 912
太阳男子
太阳男子 2021-01-12 04:36

Documentation is not clear on how to use NSUbiquitousKeyValueStore with edge cases.

If I want to set a value, I understand that I should set a value to

3条回答
  •  庸人自扰
    2021-01-12 05:12

    The Mugunth Kumar answer provided above works beautifully if you want to sync all of your NSUserDefaults!

    However, it is an ALL or NOTHING approach. You can not pick or choose the defaults you wish to sync.

    I found this Tutorial that may be of assistance if you are looking to be more picky.

提交回复
热议问题