jeudi 16 juin 2016

How to save a swift struct to file


I want to use structs for the (very simple) model of my app. However, NSKeyedArchiver only accepts objects, and only NSObjects at that. Is there any good way to save a struct to a file?


Aucun commentaire:

Enregistrer un commentaire