sdarlington / sdclouduserdefaults Goto Github PK
View Code? Open in Web Editor NEWStore NSUserDefaults and iCloud data at the same time.
License: Apache License 2.0
Store NSUserDefaults and iCloud data at the same time.
License: Apache License 2.0
I am under the impression (maybe flawed) that sdclouduserdefaults stores the key/value in both nsuserdefaults and the key value store in iCloud. As iCloud is updated it updates the local defaults. I think that's what's happening which is great. But what if a user has iCloud turned off for my app? I tested that and I assumed it would just fall back to at least save the data in nsuserdefaults. It seems to work while my app is running, but if I kill my app running in the background and re-launch that new data is gone, doesn't appear to have been saved in the defaults.. maybe it was just saved in memory so once killed it's gone? Is that the expected behavior?
Thanks
Daniel
Looks like there's no Carthage support implemented, but you have that in ReadMe.
Here's carthage output:
Dependency "SDCloudUserDefaults" has no shared framework schemes for any of the platforms: iOS
Do you know any work around for the missing of setFloat:forKey: ?
All i need to store in the cloud are floats...
Thank you
Hi..
I guess your class works well for OSX too, so you just should add that in the podspec file.
Please, could you do that ? :)
Thanks!
Hi there,
Thanks for the good library. I have a special case when I need to do some processing when new data came from the iCloud. What do you think about firing new notification here SDCloudUserDefaults.m#L140, like:
[[NSNotificationCenter defaultCenter] postNotificationName:SDCLOUD_NOTIFICATION_KEY_UPDATED
object:self
userInfo:@{key:obj}];
I can create a pull request for that if you wish.
Thanks!
Hi, Thanks for putting time on this project and sharing it.
For me under iOS 7 it's working fine, but it doesn't sync with iCloud on iOS 8. Any idea on how to fix it?
The removeObserver:
call passes in the wrong object, and therefore does not have the intended effect. It should pass in the return value of the call to addObserverForName:object:queue:usingBlock:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.