设计师发现自定义按钮放在导航条上时,按钮的显示大小和预期大小有误差
button.widthAnchor.constraint(equalToConstant: buttonWidth).isActive = true
button.heightAnchor.constraint(equalToConstant: buttonHeight).isActive = true
设计师发现自定义按钮放在导航条上时,按钮的显示大小和预期大小有误差
button.widthAnchor.constraint(equalToConstant: buttonWidth).isActive = true
button.heightAnchor.constraint(equalToConstant: buttonHeight).isActive = true