{"repo":"rztime/RZColorful","free":true,"listed":false,"github":"https://github.com/rztime/RZColorful","clone":"git clone https://github.com/rztime/RZColorful.git","description":"iOS NSAttributedString 富文本 文本可点击，添加view、gif，超行折叠展开等等","language":"Objective-C","stars":78,"topics":["uilabel","uitextfield","uitextview","attributedtext","nsattributedstring","markdown","objective-c","ios"],"license":"MIT","category":"mobile-apps","readme_excerpt":"RZColorful iOS NSAttributedString 富文本方法 (图文混排、多样式文本); 文本超行，可自动添加\"折叠\"、\"全部\"; markdown 转 html; UILabel、UITextView支持显示gif、给文本添加背景图、文本支持点击等功能 2.0.0版本后，富文本添加的点击功能更友好，富文本的布局计算更高效 Installation RZColorful is available through CocoaPods. To install it, simply add the following line to your Podfile: Author rztime, rztime@vip.qq.com QQ群：580839749 swift版本看这里RZColorfulSwift License RZColorful is available under the MIT license. See the LICENSE file for more info. 更新日志 更新日志 UITextView实现的富文本编辑器RZRichTextView NSAttributedString 的多样化设置(文字字体、颜色、阴影、段落样式、url、下划线，以及图文混排、显示gif，backgroundView，文本点击等等) 添加UITextField、UITextView、UILabel的attributedText的富文本设置。 关于RZColorful 对NSAttributeString的初始化做支持 支持 markdown 文档转换为html 支持 HTML 与 NSAttributedString互换 支持UILabel、UITextView、UITextField的attributedText的设置。 包含的属性设置： 段落样式 阴影 文本字体、颜色 文本所在区域对应的背景颜色 连体字 字间距 删除线、下划线，及其线条颜色 描边，及其颜色 斜体字 上标 下标 拉伸 链接 通过html源码加载富文本 通过url添加图片到富文本 添加自定义view，可用于显示gif、自定义标签等等 添加backgroundView，在文本背后的位置显示view 文本、图片、自定义view的点击事件 等等 How to use 主要的功能： RZColorfulConferrer text -- 添加文本 htmlText -- 添加html源码 image -- 添加图片 imageByUrl -- 添加图片（通过图片的URL添加） view -- 添加自定义view，gif可以用此方法 paragraphStyle -- 全局的段落样式 shadow -- 全局的阴影样式 RZColorfulAttribute -- 设置文本的所有的属性 RZImageAttachment -- 设置图片的所有的属性 基本方法（UILabel和UITextView用法一样） 进阶用法（UILabel和UITextView用法一样） 点击、自定义view、backgroundView等等 自定义截断内容 超行时 折叠 展开 NSAttributedString 转 HTML 行内样式的方法 可以参考RZRichTextView里code2Html方法 注意 尽管我已经在代码中已经处理过（弱）引用问题，但是在实际运用写入text时，还是请尽量检查避免循环引用 最后 在使用过程中，如果您发现有什么问题，欢迎向我反馈，谢谢","default_branch":null,"files":null,"tree":[],"storefront":"/r/rztime","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rztime/RZColorful/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}