博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[翻译] DTCoreText 从HTML文档中创建富文本
阅读量:6966 次
发布时间:2019-06-27

本文共 1340 字,大约阅读时间需要 4 分钟。

DTCoreText 从HTML文档中创建富文本

 

注意哦亲,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 .

对于从 HTML 文档中绘制简单的富文本而不使用 UIWebView 将非常有用。对于需要选择或者高亮(如果你需要一个编辑器或者阅读器),这有一个商业化的组件 DTRichTextEditor 可以使用,你可以在 Cocoanetics Parts Store 中购买。

 

Documentation

Documentation can be  or installed in your Xcode Organizer via the .

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

A  answers some frequently asked questions.

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

Changelog: 

更改日志的地方

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

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

 

 

 

 

 

转载地址:http://ybisl.baihongyu.com/

你可能感兴趣的文章
单变量微积分学习笔记
查看>>
Visual Studio下运行PowerShell脚本自增小版本号并发布到Nuget服务器上
查看>>
内行看门道:看似“佛系”的《QQ炫舞手游》,背后的音频技术一点都不简单...
查看>>
windows安装centos7子系统
查看>>
win10下搭建jz2440v3(arm s3c2440)开发及gdb调试环境【转】
查看>>
安装 Percona XtraBackup 2.3
查看>>
Linux网络编程“惊群”问题总结
查看>>
002-redis-数据类型
查看>>
mysql 锁的现象和解决
查看>>
py 行者 the5fire
查看>>
小型网络存储服务器(转)
查看>>
Ext DeskTop的使用方法简易教程及相关例子Demo(转)
查看>>
KD Tree
查看>>
[Cocoa]XCode下的iOS单元测试
查看>>
Centos 中使用 FTP 命令时出现“-bash: ftp: command not found”
查看>>
控件-TextField、Slider、
查看>>
java中ArrayList 、LinkList区别
查看>>
C#怎么做系统托盘
查看>>
ORA-01940: 无法删除当前连接的用户
查看>>
metasploit nessus & db_autopwn
查看>>