ChainAttributedString
示例
要运行示例项目,首先将仓库克隆下来,然后从 Example 目录中运行 pod install
。
- 代码效果
xx.kn_addString(@"封装富文本API").kn_fontColor(UIColor.redColor).kn_addString(@"采用block实现链式编程").kn_fontColor(UIColor.blueColor).kn_addString(@"!");
用法介绍
安装
ChainAttributedString 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中:
pod 'ChainAttributedString'
或
pod update ChainAttributedString --verbose --repo-update
作者
kunnan, [email protected]
许可证
ChainAttributedString 可在 MIT 许可证下使用。更多信息请参阅 LICENSE 文件。
ChainAttributedString
pod lib create ChainAttributedString
kngitinit [email protected]:zhangkn/ChainAttributedString.git
kngit 0.1.4
git tag -a 0.1.4 -m "0.1.4"
git push origin --tags
pod lib lint ChainAttributedString.podspec --allow-warnings
pod trunk push ChainAttributedString.podspec --allow-warnings
参阅 Also
pod 命令
- 创建账户 pod trunk register 邮箱 联系人 –description=”描述” –verbose
- 创建成功后,您会收到一封邮件,请验证邮箱 pod trunk me 查看trunk 信息
pod search ChainAttributedString