問題タブ [ohattributedlabel]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
139 参照

ios - OHAttributedLabel で行間隔が機能しない

これはコードです:

ラベルは次のとおりです。

それ以外の:

編集:ラベルにはテキストを1行に入れるのに十分なスペースがありますが、ブレークラインを挿入したい(プログラムで!)

0 投票する
2 に答える
2262 参照

swift - Swift で TTTAttributedLabel、OHAttributedLabel、または SETextView に「NSBackgroundColorAttributeName」を設定する方法

、またはにNSBackgroundColorAttributeName属性を設定しようとしていますが、うまくいきません。誰でも何か考えがありますか?サンプルコードに従います。TTTAttributedLabelOHAttributedLabelSETextView

また、「NSForegroundColorAttributeName」をlabel適切に設定できます。