LoginSignup
1
2

More than 5 years have passed since last update.

UILabelの省略記号が上下中央揃えになってしまう

Last updated at Posted at 2015-11-20

Problem

UILabelの省略記号が以下のように上下中央揃えになってしまう。

スクリーンショット 2015-11-20 10.10.27.png

これを普通の下揃えにしたい。

Solution

上下中央揃えになる原因は、UILabelのAttribute Inspectorの設定で「Lines」を「0」にしていたことだった。
下揃えにするには、Linesに1以上の数値を入れれば良い。

スクリーンショット 2015-11-20 10.10.32.png

1
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
1
2