1
1

More than 5 years have passed since last update.

UILabelに意図しないborderが付いてしまう場合の対処 【iOS 7?】

Posted at

症状

原因

  • ↑のstack overflowにも書いてあるけど、 label.frameに浮動小数点が入ってると表示がおかしくなる様子

以下一部引用

Check that you have only integer non-fractional dimensions (42.000 or 1337.000, not 42.500 or 1337.1234). This can be the source of your display problem.

結論

NSInteger にキャストすると直った

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