前言
block 的妙用:结合block和方法的优点实现iOS的链式编程
-【 完整pod 仓库源码GitHub】
主要针对段落样式NSMutableParagraphStyle
和富文本NSMutableAttributedString
进行封装
- 代码效果
xx.kn_addString(@"封装富文本API").kn_fontColor(UIColor.redColor).kn_addString(@"采用block实现链式编程")
block 的妙用:结合block和方法的优点实现iOS的链式编程
-【 完整pod 仓库源码GitHub】
主要针对段落样式NSMutableParagraphStyle
和富文本NSMutableAttributedString
进行封装
xx.kn_addString(@"封装富文本API").kn_fontColor(UIColor.redColor).kn_addString(@"采用block实现链式编程")