How to programmatically detect if the iCloud is enabled on user's device when only use NSUbiquitousKeyValueStore?

后端 未结 2 573
温柔的废话
温柔的废话 2020-12-31 08:26

I am using NSUbiquitousKeyValueStore to sync some preference data to iCloud. I found that if the user disable \"Document & Data\" item of iCloud in \"Settin

2条回答
  •  借酒劲吻你
    2020-12-31 08:58

    Basically, NSUbiquitousKeyValueStore is always available, even if the user does not have an iCloud account (in this case, NSUbiquitousKeyValueStore is just a simple local storage). So in general, you don't need to ask yourself or the user if there is a configured iCloud account.

    If you really want to know for sure, in iOS 5, the only solution is the one you're mentioning.

提交回复
热议问题