ios – 如何在仅使用NSUbiquitousKeyValueStore时在用户设备上编程检测iCloud是否启用?
我正在使用NSUbiquitousKeyValueStore将一些偏好数据同步到iCloud.我发现如果用户在“设置应用程序”中禁用iCloud的“文档和数据”项,则NSUbiquitousKeyValueStore无法将其数据同步到iCloud.所以,我想先检查一下这个设置是否被打开.在谷歌搜索之后,我发现这个代码段: NSURL *ubiq = [[NSFileManager defaultM