AliyunJSONModel

Deprecated


@interface AliyunJSONModel : NSObject

已废弃,请勿使用

  • 创建JSONModel

    Declaration

    Objective-C

    - (instancetype)initWithDictionary:(NSDictionary *)dic;

    Parameters

    dic

    数据字典

    Return Value

    JSONModel

  • 转换字典

    Declaration

    Objective-C

    - (NSDictionary *)toDictionary;

    Return Value

    数据字典

  • 创建JSONModel

    Declaration

    Objective-C

    - (instancetype)initWithFile:(NSString *)path;

    Parameters

    path

    文件路径

    Return Value

    JSONModel

  • 文件写入数据

    Declaration

    Objective-C

    - (void)jsonToFile:(NSString *)path;

    Parameters

    path

    路径

  • 重写 防止无属性时候 setKeyValue crash

    Declaration

    Objective-C

    - (void)setValue:(id)value forUndefinedKey:(NSString *)key;

    Parameters

    value

    value

    key

    key