【发布时间】:2016-06-01 13:15:48
【问题描述】:
我需要方形项目符号(彩色)文本如下
◼︎ Some large amount of text that
make it span to the next line.
显示在UITextView。但问题是它不会在下一行添加填充。
◼︎一些大量的文字
让它跨越到下一行。
这些项目符号文本是静态内容,因此无需通过代码进行设置。
当我设置属性类型时,自定义字体也不起作用。使用的自定义字体是Raleway。
【问题讨论】:
-
你可以使用
NSParagraphAttributeName来处理缩进。
标签: ios uitextview nsattributedstring custom-font