fti

FTiCloudSync

Automatically syncs NSUserDefaults across multiple iOS devices using iCloud.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

140

Maintenance

Last Commit

1yr ago

Contributors

4

Package

Dependencies

1

License

Creative Commons-Attribution-ShareAlike 3.0 Unported

Categories

Readme

FTiCloudSync

Automatically syncs NSUserDefaults across multiple iOS devices using iCloud.

Installation

Drag all files into your Xcode project.

Requirements

iCloud requires iOS 5.0 or later. However, this code builds and runs fine under iOS 4.0 or later. If iCloud is not available, this code does nothing.

Usage

All write and remove requests to NSUserDefaults are automatically synchronized with iCloud. To prevent synchronization for individual keys, prefix the key with a ! (exclamation mark).

To respond to updates from iCloud you can observe the FTiCloudSyncDidUpdateNotification. It contains the NSUserDefaults object and in the userInfo a dictionary with FTiCloudSyncChangedKeys and FTiCloudSyncRemovedKeys. These are arrays of the changed and removed keys.

Flattr this

Compatibility

FTiCloudSync is compatible with InAppSettingsKit, a framework to easily add in-app settings to iPhone apps. InAppSettingsKit automatically updates the UI when an iCloud update is received.

License

Licensed under CC-BY-SA 3.0.

You are free to share, adapt and make commercial use of the work as long as you give attribution and keep this license. To give credit, we suggest this text in the about screen or App Store description: "Uses FTiCloudSync by Ortwin Gentz", with a link to the GitHub page.

If you need a different license without attribution requirement, please contact me and we can work something out.

Includes:

  • RegexKitLite by John Engelhart. Copyright © 2008-2010 John Engelhart. Licensed under the terms of the BSD License.
  • MethodSwizzling by Mike Ash

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100