Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我将用户名和密码存储在 iCloud 键值存储中。在第一次启动时,我调用 synchronize 从 iCLoud 获取数据,但存在延迟。有什么方法可以强制获取 iCloud 中的数据?
我通过在初始化后立即设置一个假的 iCloud 键值来做到这一点,例如:
NSUbiquitousKeyValueStore *kvStore = [NSUbiquitousKeyValueStore defaultStore]; [kvStore setObject:@"th" forKey:@"KVTickle"];