【发布时间】:2021-09-22 06:46:16
【问题描述】:
我想在 nslayoutconstraint 中添加 20 个常量值,我该怎么做??
Let moduleConstraint = module.bottomAnchor.constraint(equalTo:mainScroll.safeAreaLayoutGuide.bottomAnchor)
【问题讨论】:
标签: ios swift anchor nslayoutconstraint
我想在 nslayoutconstraint 中添加 20 个常量值,我该怎么做??
Let moduleConstraint = module.bottomAnchor.constraint(equalTo:mainScroll.safeAreaLayoutGuide.bottomAnchor)
【问题讨论】:
标签: ios swift anchor nslayoutconstraint
你可以试试
moduleConstraint.constant += 20
view.layoutIfNeeded() // refresh the layout
【讨论】: