問題タブ [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.
ios - OHAttributedLabel で行間隔が機能しない
これはコードです:
ラベルは次のとおりです。
それ以外の:
編集:ラベルにはテキストを1行に入れるのに十分なスペースがありますが、ブレークラインを挿入したい(プログラムで!)
swift - Swift で TTTAttributedLabel、OHAttributedLabel、または SETextView に「NSBackgroundColorAttributeName」を設定する方法
、またはにNSBackgroundColorAttributeName
属性を設定しようとしていますが、うまくいきません。誰でも何か考えがありますか?サンプルコードに従います。TTTAttributedLabel
OHAttributedLabel
SETextView
また、「NSForegroundColorAttributeName
」をlabel
適切に設定できます。