Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/cocojoe/gamemanager
- Owner: cocojoe
- Created: 2016-07-26T21:08:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T09:34:41.000Z (over 8 years ago)
- Last Synced: 2024-11-13T09:27:00.399Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 150 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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, 2016Added 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.