FWDataWrapper

@interface FWDataWrapper : FWObjectWrapper

Undocumented

Json

  • json数据解码为Foundation对象

    Declaration

    Objective-C

    - (nullable id)jsonDecode;

    Return Value

    Foundation对象

Base64

  • base64编码

    Declaration

    Objective-C

    - (nonnull NSData *)base64Encode;

    Return Value

    base64数据

  • base64解码

    Declaration

    Objective-C

    - (nullable NSData *)base64Decode;

    Return Value

    原数据

Helper

  • 转换为UTF8编码字符串

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *utf8String;

    Return Value

    UTF8编码字符串

FWFoundation

  • 使用NSKeyedUnarchiver解压数据

    Declaration

    Objective-C

    - (nullable id)unarchiveObject:(nonnull Class)clazz;