1. Preface
For the object of the archive, before using MJ Teacher's mjextension framework to do a dictionary to model, the direct use of macro mjcodingimplementation can realize the object of automatic archiving and reconciliation methods, it is very useful. But sometimes you do not need to use the dictionary to the model, do not want the framework, you need to manually one implementation, sometimes a lot of properties, simple but cumbersome code will be a bit impatient. Just see 袁峥 Teacher's article "let you quickly get started with runtime", so you want to implement the runtime, to achieve automated archiving, the entire project code GITHUB.
2. Object archiving
Here is a step you can skip and simply review the original way to implement object archiving, creating a class called Student class, where students have name, and sex attributes.
The body part is transferred from http://www.cocoachina.com/ios/20151026/13908.html
Automate archiving with runtime