title: Is it possible to intercept iCloud switching on/off in Settings -> iCloud -> Document & Data?
body: <p>Is it possible to intercept if the user switches from on to off the iCloud support under <strong>Settings</strong> -> <strong>iCloud</strong> -> <strong>Document &amp; Data</strong>?</p>
  
  <p>Obviously when he does this the app has already resigned active and entered the background. I am targeting iOS7 and I would like to keep in sync the <code>UIManagedDocument</code>, otherwise it would be like having two different UIDocuments: one with iCloud support and all the data created until the switch from on to off and a new one without any data in it. If I create data when iCloud support has been switched to off, and then I switch back to on I get the same DB I had when the support has been switched to off. </p>
  
  <p><em><strong>Note</em></strong>: I believe nelico's answer is right. He wrote: "If your app is running and the user changes enables or disable Document &amp; Data iCloud syncing via the settings app, your app will receive the SIGKILL signal."</p>
  
  <p>When the user changes the settings the app is ALREADY in the background and receives the SIGKILL signal. This is what I do not understand and I do not want. Registering for <code>NSUbiquityIdentityDidChangeNotification</code> doesn't solve <strong>this</strong> problem.</p>