0

Im new with iOS and ICloud. I have an app that syncs core data with iCloud, and i want to know how can i check if the device has the iCloud or iCloud Drive setting disabled, and in that case ask the user to enable it programatically from the app.

Example:

enter image description here

Thanks in advance.

user3065901
  • 4,678
  • 11
  • 30
  • 52

2 Answers2

1

accountStatusWithCompletionHandler can be used to check whether the current user’s iCloud account can be accessed.

This method determines the status of the current user’s iCloud account asynchronously, reporting the results to the block in the completionHandler parameter.

It is available in ios 8 and later.

Rohit
  • 895
  • 1
  • 9
  • 19
1

please check here this is already answered

Community
  • 1
  • 1
Just Variable
  • 892
  • 10
  • 19