swift 布局(iOS9之后布局)自定义UIBarButton

2019-01-02  本文已影响19人  泛坷

设计师发现自定义按钮放在导航条上时,按钮的显示大小和预期大小有误差

 button.widthAnchor.constraint(equalToConstant: buttonWidth).isActive = true
 button.heightAnchor.constraint(equalToConstant: buttonHeight).isActive = true
上一篇 下一篇

猜你喜欢

热点阅读