设计师发现自定义按钮放在导航条上时,按钮的显示大小和预期大小有误差
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
本文标题:swift 布局(iOS9之后布局)自定义UIBarButton
本文链接:https://www.haomeiwen.com/subject/ijdalqtx.html
网友评论