Search code examples
nsuserdefaultstvos

Can I use NSUserDefaults with tvOS?


The App Programming Guide for tvOS briefly states that

There is no persistent local storage for apps on Apple TV. This means that every app developed for the new Apple TV must be able to store data in iCloud and retrieve it in a way that provides a great customer experience.

Does this mean NSUserDefaults is unavailable? What mechanisms are available for data storage?


Solution

  • According to an Apple Staff member on the devforums, you can use NSUserDefaults on tvOS for up to 500 kb of data:

    https://forums.developer.apple.com/message/50696#50696