Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cocojoe/gamemanager

Swift, Singleton, NSCoding, NSData and NSUserDefaults (Example)
https://github.com/cocojoe/gamemanager

Last synced: 3 days ago
JSON representation

Swift, Singleton, NSCoding, NSData and NSUserDefaults (Example)

Awesome Lists containing this project

README

        

# GameManager
Swift, Singleton, NSCoding, NSData and NSUserDefaults (Example)

### Outline
* Touch will increase the high score.
* (Save Data) Send the app to the background.
* (Restore Data) Kill app and relaunch.
* A new character object will be added to the characters array each time the app is launched.

### Changelog
July 28, 2016

Added custom class and implemented *NSCoding* prototcol.
Converting an array of the custom class to *NSData* to allow for storage/retrieval in *NSUserDefaults*.
Implemented *CustomStringConvertible* in singleton for easier debug.

### Notes
Utilises the awesome [SwiftyUserDefaults](https://github.com/radex/SwiftyUserDefaults) for a Swifty experience.