【问题标题】:NSAttributedString/NSParagraphStyle: Xcode-like line break indentationNSAttributedString/NSParagraphStyle:类似 Xcode 的换行缩进
【发布时间】:2012-06-25 18:20:04
【问题描述】:

如何使用 NSAttributedString 和/或 NSParagraphStyle 在 Xcode 中实现“断线”的缩进?请注意,它们在 Xcode 中有一个额外的缩进。

【问题讨论】:

    标签: macos cocoa nsattributedstring


    【解决方案1】:

    您可以为此使用NSParagraphStyleheadIndent 属性。您可能需要根据(逻辑)行的缩进宽度(制表符、空格)自己计算适当的缩进量。

    【讨论】:

    • 谢谢。我实际上误读了该物业的文件。
    猜你喜欢
    • 2013-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-23
    • 1970-01-01
    • 1970-01-01
    • 2011-12-24
    • 1970-01-01
    相关资源
    最近更新 更多