Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSAttributedStringやNSParagraphStyleを使用して、Xcodeのように「改行された行」のインデントを実現するにはどうすればよいですか?Xcodeで追加のインデントを取得することに注意してください。
headIndentこのためにのプロパティを使用できますNSParagraphStyle。(論理)行のインデント幅(タブ、スペース)に基づいて、適切なインデント量を自分で計算する必要がある場合があります。
headIndent
NSParagraphStyle