天天看點

[翻譯] DTCoreText 從HTML文檔中建立富文本

dtcoretext 從html文檔中建立富文本

[翻譯] DTCoreText 從HTML文檔中建立富文本

注意哦親,dtrichtexteditor 這個元件是收費的,不貴,才650美元而已^_^。

[翻譯] DTCoreText 從HTML文檔中建立富文本

dtcoretext

this project aims to duplicate the methods present on mac osx which

allow creation of <code>nsattributedstring </code>from html code

on ios.

這個項目旨在複制 mac osx 中允許直接從 html

的代碼中建立富文本功能,讓其能在 ios 上使用。

[翻譯] DTCoreText 從HTML文檔中建立富文本

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 <code>dtattributedtextview</code>,<code>dtattributedlabel</code> and <code>dtattributedtextcell</code>.

ui - ui

相關的類用來渲染這些對象,尤其是 <code>dtattributedtextview</code>,<code>dtattributedlabel</code> 和 <code>dtattributedtextcell</code>.

this is useful for drawing simple rich text like any html document

without having to use a <code>uiwebview</code>. 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.

這裡你可以找到通用問題中的一系列解決方案。

繼續閱讀