How to serialize a class in IOS sdk (Objective-c)?

前端 未结 7 1574
既然无缘
既然无缘 2021-01-03 01:21

How to serialize the following class in objective-c so that it can be used with SBJson?

I get \"JSON serialisation not supported for Animal\" error when I use this c

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-03 01:54

    Please check this Property List Programming Guide - Serializing a Property List

    and the similar post here: Make a Custom Class Serializable in Objective-c/iPhone?

    Object serialization in XML format using Obj-C / iPhone SDK

提交回复
热议问题