Blurry UILabel as programmatic subview of UITableViewCell contentView

后端 未结 9 823
离开以前
离开以前 2021-02-04 02:26

I am adding a UILabel instance as a subview of my custom UITableViewCell instance\'s contentView.

When I select the cell, the row

9条回答
  •  迷失自我
    2021-02-04 03:00

    The issue is sub-pixel rendering, which occurs when your origin (which is a float value) has a non-zero fractional component. Round to the nearest whole number and you should be fine.

提交回复
热议问题