tableviewcell 中的水平 space 约束
horizontal space constraint in tableviewcell
我在表格视图单元格中有标签
如何将常量的值更新为 -65
我试过
[cell.address.leadingAnchor constraintEqualToAnchor:cell.address.leadingAnchor constant:-65].active = YES;
作为出风口需要拖拽
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leadCon;
然后改变它的常量
_leadCon.constant = -65;
[cell layoutIfNeeded];
Tip : What you currently do will add another constraint which will make a conflict between the 1 in IB , hence unexpected results
我在表格视图单元格中有标签 如何将常量的值更新为 -65
我试过
[cell.address.leadingAnchor constraintEqualToAnchor:cell.address.leadingAnchor constant:-65].active = YES;
作为出风口需要拖拽
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leadCon;
然后改变它的常量
_leadCon.constant = -65;
[cell layoutIfNeeded];
Tip : What you currently do will add another constraint which will make a conflict between the 1 in IB , hence unexpected results