[翻译] DTCoreText 从HTML文档中创建富文本
DTCoreText 从HTML文档中创建富文本
https://github.com/Cocoanetics/DTCoreText
注意哦亲,DTRichTextEditor 这个组件是收费的,不贵,才650美元而已^_^。
DTCoreText
This project aims to duplicate the methods present on Mac OSX which allow creation of NSAttributedString from HTML code on iOS.
这个项目旨在复制 Mac OSX 中允许直接从 HTML 的代码中创建富文本功能,让其能在 iOS 上使用。
The project covers two broad areas:
这个项目覆盖了两个方面:
Layouting - Interfacing with CoreText, generating attributed strings from HTML code Layouting - CoreText 的接口,用来从 HTML 代码中生成富文本布局
User Interface - UI-related classes render these objects, specifically DTAttributedTextView,DTAttributedLabel and DTAttributedTextCell. UI - UI 相关的类用来渲染这些对象,尤其是 DTAttributedTextView,DTAttributedLabel 和 DTAttributedTextCell.
This is useful for drawing simple rich text like any HTML document without having to use a UIWebView. For text selection and highlighting (as you might need for an Editor or Reader) there is the commercial DTRichTextEditor component which can be purchased in the Cocoanetics Parts Store.
对于从 HTML 文档中绘制简单的富文本而不使用 UIWebView 将非常有用。对于需要选择或者高亮(如果你需要一个编辑器或者阅读器),这有一个商业化的组件 DTRichTextEditor 可以使用,你可以在 Cocoanetics Parts Store 中购买。
Documentation can be browsed online or installed in your Xcode Organizer via the Atom Feed URL.
你可以直接在网络上看文档或者是安装到 Xcode 上。
A Q A answers some frequently asked questions.
在这里你可以看到经常被问到的问题。
Changelog: GitHub Releases
更改日志的地方
There is also a Programming Guide with a set of solutions to common problems.
这里你可以找到通用问题中的一系列解决方案。
通过DOM对HTML文档的元素内容和CSS样式进行操作 通过DOM对HTML文档的元素内容和CSS样式进行操作 通过前面的学习我们应该可以了解到,通过DOM我们可以操作HTMl文档中的任意的元素及属性,文本内容。其实实际工作中我们用到最多的是怎样通过DOM操作HTML文档中的CSS样式。 HTML代码: button id= btn 切换 /button div "img" alt="" src="https://ucc.alicdn.com/images/user-upload-01/74520df74a104405b45a75b1fb5442ab.png?x-oss-process=image/resize,h_118"/>
相关文章
- 【数字图像处理】 二.MFC单文档分割窗口显示图片
- c#使用XSLT将xml文档转换为html文档
- 使用 jsoup 对 HTML 文档进行解析和操作
- IdentityServer4中文文档
- 三步去掉 Word 2010 文档页眉上的横线
- HTML DOM print() 方法 ,html 打印
- 如何将SAP C4C自定义BO中类型为图片的附件用PDF文档显示出来
- 一起学微软Power BI系列-官方文档-入门指南(6)Power BI与Excel
- Atitit 大数据体系树 艾提拉著 数据采集 gui自动化 爬虫 Nui自动化 Ocr技术 Tts语音处理 文档处理(office zip等) html文档处理解析 转换与处理
- Atitit 文档的格式演变attilax总结
- NLP:利用python编程语言的split函数结合if判断(T1自定义函数或T2封装函数)实现提取两人对话内容(***分隔txt文档),并各自保存为txt文档
- 带你领略python魔法~免费复制文档数据
- 1个月时间整理了2019年上千道Java面试题,近500页文档!
- pytest文档8-html报告报错截图+失败重跑
- 假设web应用的文档根目录为MyApp,那么可以从哪里找到database.jar文件。
- HTML 文档的基本结构
- JS 常用函数一(弹对话框、操作HTML元素、写HTML文档、写到控制台、查找元素、元素插入内容、改变HTML属性、计时)
- 使用showdown.js将Markdown文档转换为HTML