症状
- UILabel のframeと思しき枠に、意図しない1pxくらいの線が入る
- 自分の場合、iOS 7 on iPhone4Sで起きた
- Extremely Weird Thing with UILabel which displays abnormally | stack overflow これっぽい
原因
- ↑の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 にキャストすると直った