如何在Xcode中使用NSAttributedString和/或NSParagraphStyle实现“换行符”的缩进?请注意,它们在Xcode中获得了额外的缩进。
发布于 2012-06-29 18:17:30
为此,可以使用NSParagraphStyle的headIndent属性。您可能需要根据(逻辑)行的缩进宽度(制表符、空格)自己计算适当的缩进量。
NSParagraphStyle
headIndent
https://stackoverflow.com/questions/11194988
相似问题