<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">一、DTCoreText 中的主要方法</span>
DTCoreText: 主要用于,富文本处理。自带了HTML标签解析,文本渲染(主要封装了CoreText)。
主要方法:
/**
Initializes and returns a new `NSAttributedString` object from the HTML contained in the given object and base URL.
Options can be:
- DTMaxImageSize: the maximum CGSize that a text attachment can fill
- DTDefaultFontFamily: the default font family to use instead of Times New Roman
- DTDefaultFontName: the default font face to use instead of Times New Roman
- DTDefaultFontSize: the default font size to use instead of 12
- DTDefaultTextColor: the default text color
- DTDefaultLinkColor: the default color for hyperlink text
- DTDefaultLink