FWAttributedStringWrapper

@interface FWAttributedStringWrapper : FWObjectWrapper

Undocumented

FWFoundation

  • NSAttributedString对象转换为html字符串

    Declaration

    Objective-C

    - (nullable NSString *)htmlString;
  • 计算所占尺寸,需设置Font等

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize textSize;
  • 计算在指定绘制区域内所占尺寸,需设置Font等

    Declaration

    Objective-C

    - (CGSize)textSizeWithDrawSize:(CGSize)drawSize;