[翻译] 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:

这个项目覆盖了两个方面:

  1. Layouting - Interfacing with CoreText, generating attributed strings from HTML code Layouting - CoreText 的接口,用来从 HTML 代码中生成富文本布局
  2. 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

Documentation can be browsed online or installed in your Xcode Organizer via the Atom Feed URL.

你可以直接在网络上看文档或者是安装到 Xcode 上。

Q&A answers some frequently asked questions.

在这里你可以看到经常被问到的问题。

Changelog: GitHub Releases

更改日志的地方

There is also a Programming Guide with a set of solutions to common problems.

这里你可以找到通用问题中的一系列解决方案。

目录
相关文章
|
1月前
HTML文档基础标签(2)
HTML文档基础标签(2)
|
3月前
|
XML 移动开发 数据格式
html5为什么只需要写<!doctype html>? 有多少种Doctype文档类型?
html5为什么只需要写<!doctype html>? 有多少种Doctype文档类型?
28 0
|
3月前
|
小程序 JavaScript 数据库
小程序解析富文本html内容
小程序解析富文本html内容
|
22天前
|
移动开发
uni-app使用v-html输出富文本图片溢出解决
uni-app使用v-html输出富文本图片溢出解决
37 1
|
5天前
|
移动开发 开发者 HTML5
html文档
【4月更文挑战第19天】html文档
11 1
|
1月前
|
JSON 资源调度 小程序
一个强大的小程序富文本组件mp-html
一个强大的小程序富文本组件mp-html
23 0
|
1月前
|
数据采集 移动开发 前端开发
springboot使用html模版导出pdf文档
springboot使用html模版导出pdf文档
|
1月前
|
移动开发 SEO HTML5
HTML文档基础标签(1)
HTML文档基础标签(1)
|
1月前
|
移动开发 HTML5
HTML5文档头部相关标记
【2月更文挑战第9天】HTML5文档头部相关标记。
13 1
|
4月前
|
编解码 JavaScript 前端开发
BOM和DOM:BOM(浏览器对象模型)提供了与浏览器交互的能力,如弹窗、定时器等;DOM(文档对象模型)提供了操作HTML元素的能力,如获取、修改元素内容和属性。
BOM和DOM:BOM(浏览器对象模型)提供了与浏览器交互的能力,如弹窗、定时器等;DOM(文档对象模型)提供了操作HTML元素的能力,如获取、修改元素内容和属性。
38 2