Change the label width dynamically inside a UITableViewCell

后端 未结 3 1222
忘掉有多难
忘掉有多难 2021-01-03 12:15

I am trying to build up an custom table view.

\"enter

As you can see in the pi

3条回答
  •  醉梦人生
    2021-01-03 12:51

    This sounds like a consequence of auto layout -- when using it, you shouldn't set frames at all, instead you should adjust the constraints. You can make an IBOutlet to the width constraint of your label, and adjust its constant value in code.

提交回复
热议问题