LoginSignup
3
2

More than 5 years have passed since last update.

静的なTextAttributeを超簡単に設定する

Posted at

用意するもの

  • TextEdit.app
  • Xcode

手順

スクリーンショット 2016-02-26 16.32.45.png

TextEdit.appで文字を装飾します。

これを全選択してコピー

Xcodeに移動してUILabelのインスペクタからText: Planeとなっている部分をText: Attributedにして装飾用のインスペクタを開きます。

スクリーンショット 2016-02-26 16.33.18.png

スクリーンショット 2016-02-26 16.34.04.png

あとは先程のコピーしたテキストをペーストすると

スクリーンショット 2016-02-26 16.35.34.png

装飾もそのままペーストされて

スクリーンショット 2016-02-26 16.35.39.png

ストーリーボードにも反映されます。Happy

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2