mirror of
https://gh-proxy.org/https://github.com/klinsmaya/dashjim.github.com.git
synced 2026-11-08 09:26:57 +08:00
core text这一栏上面增加几个空行
This commit is contained in:
@@ -66,7 +66,10 @@ Printing description of attributedString:
|
||||
还有就是NSAttributedString提供对所有属性进行遍历的方法,也提供了计算在特定size下渲染实际所占的区域(boundingRectWithSize:options:) 这些这里就不介绍了。
|
||||
从上面的代码可以看出其实Mac下的富文本的渲染并不是很复杂,只要将Attributed String理解和使用好,其余的事情都交给NSTextView来做了,你完全不用考虑其底层是如何取渲染的。但是在iOS平台上就没有这么幸运了,虽然iOS从3。2开始也提供了NSAttributedString,但是并没有类似NSTextView这样的控件直接来渲染Attributed String。
|
||||
这个时候你就得使用Core Text了。
|
||||
|
||||
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
##Core Text
|
||||
|
||||
-----
|
||||
|
||||
Reference in New Issue
Block a user