Blurry UILabel as programmatic subview of UITableViewCell contentView

后端 未结 9 926
离开以前
离开以前 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 02:51

    Setting shouldRasterize to YES may introduce blurriness. Set the rasterization scale and that should eliminate the blurriness. [self.layer setRasterizationScale:[[UIScreen mainScreen] scale]];

提交回复
热议问题