Creating a Custom NSObject Class for Serialization

I want a custom class based on NSObject to be serializable. I read this one , but I want to ask some additional questions.

  • Does it NSObject NSCoder?
  • I also want to ask if I can serialize an array of some objects of this custom class that I want to be serializable. Is this required for some special init?
  • I know that I have to implement initWithCoderand encodeWithCoder. Are these variables in my custom class of objects that I have to encode / decode there?
+3
source share
1
+2

Source: https://habr.com/ru/post/1751550/


All Articles