PrefsInCloud : Using NSUbiquitousKeyValueStore with iCloud

Last Revision:
Version 4.0, 2015-10-22
Updated to provide OS X equivalent project.
(Full Revision History)
Build Requirements:
iOS 9.0 SDK or later, OS X 10.10 SDK or later
Runtime Requirements:
iOS 7.0 or later, OS X 10.9 or later

A set of simple iOS and OS X applications that demonstrates how to use iCloud key-value store to share a single piece of data, its background color, with the same app on other iOS devices. It uses NSUbiquitousKeyValueStore to achieve this by storing a simple NSInteger representing a chosen color index. The user changes the background color of the app by choosing between 4 known colors.