FWStringClassWrapper

@interface FWStringClassWrapper : FWClassWrapper

Undocumented

Json

  • Foundation对象编码为json字符串

    Declaration

    Objective-C

    - (nullable NSString *)jsonEncode:(nonnull id)object;

    Parameters

    object

    编码对象

    Return Value

    json字符串

Query

  • 字典编码为URL参数字符串

    Declaration

    Objective-C

    - (nonnull NSString *)queryEncode:
        (nonnull NSDictionary<NSString *, id> *)dictionary;

FWFoundation

  • 格式化文件大小为".0K/.1M/.1G"

    Declaration

    Objective-C

    - (nonnull NSString *)sizeString:(NSUInteger)fileSize;