文章来源:淘论文网   发布者: 毕业设计   浏览量: 39



还可以点击去查询以下关键词:
[编辑]    [文本]    [工厂]    [毕业]    [省去]    [繁琐]    [代码]    [iOS 富文本编辑工厂毕业, 省去繁琐的编辑代码]   

项目介绍:

对比:

之前:

NSShadow *shadow = [NSShadow new]; shadow.shadowColor = [UIColor orangeColor]; shadow.shadowOffset = CGSizeMake(0.2, 0.2); NSAttributedString *testAttr = [[NSAttributedString alloc] initWithString:@'test' attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:12], NSForegroundColorAttributeName:[UIColor redColor], NSShadowAttributeName:shadow}];

现在:

// 可修改整体, 也可修改指定范围. testAttr = [SJAttributesFactory alterStr:@'test' block:^(SJAttributesFactory *worker) { // 修改整体 worker.font([UIFont systemFontOfSize:12]) .expansion(0.5) .fontColor([UIColor redColor]) .shadow(shadow) .backgroundColor([UIColor greenColor]) .lineSpacing(5) .alignment(NSTextAlignmentLeft) .underline([UIColor redColor]); // 等等 // 修改指定范围 worker.nextFont([UIFont systemFontOfSize:20]) .nextFontColor([UIColor yellowColor]) .nextOffset(0.3) .nextLetterpress() .range(NSMakeRange(1, 2)); // 指定范围 }];Usepod 'SJAttributesFactory'项目地址

https://github.com/changsanjiang/SJAttributesFactory

论文开题报告

这里还有:


还可以点击去查询:
[编辑]    [文本]    [工厂]    [毕业]    [省去]    [繁琐]    [代码]    [iOS 富文本编辑工厂毕业, 省去繁琐的编辑代码]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/3837.docx
  • 上一篇:AR太阳系swift版定制本新,xcode9可运行
  • 下一篇:XLsn0wPay Manager 微信支付SDK/支付宝SDK接入...