AKAttributedString 1.0.1

AKAttributedString 1.0.1

Kisscu 维护。



AKAttributedString

一个易于创建浓郁的 NSAttributedString 实例,无需使用 NSAttributedStringKey。

内容

  • 如何安装:
    • AKAttributedString 文件夹中的所有文件拖到项目中
    • 导入主文件:#import "NSMutableAttributedString+AKAttributedString.h"
  • 如何使用:
label1.attributedText =  [[NSMutableAttributedString alloc] initWithString:@"test123456789"]
    .color([UIColor blueColor])
    .strokeColor([UIColor redColor])
    .strokeWidth(@-2)
    .rangeColor([UIColor blackColor],NSMakeRange(0, 4))
    .font([UIFont systemFontOfSize:30])
    .over;