Blurry UILabel as programmatic subview of UITableViewCell contentView

后端 未结 9 820
离开以前
离开以前 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:52

    Use round(); C functions are provided for a reason.

    #define roundCGRectValues (frame) \
    frame = CGRectMake(round(frame.origin.x),round(frame.origin.y),round(frame.size.width),round(frame.size.height));
    

    All you need.

提交回复
热议问题