UITableViewCell content overlaps delete button when in editing mode in iOS7

前端 未结 11 1057
长情又很酷
长情又很酷 2020-12-15 07:50

I am creating a UITableView with custom UITableViewCells. iOS 7\'s new delete button is causing some problems with the layout of my cell.

I

11条回答
  •  温柔的废话
    2020-12-15 08:15

    As tcurdt mentioned, you could switch to autolayout to solve this issue. But, if you (understandably) don't want to mess with autolayout just for this one instance, you can set the autoresizingMask and have that turned automatically into the appropriate autolayout constraints.

    label.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    

提交回复
热议问题