美文网首页
swift 布局(iOS9之后布局)自定义UIBarButton

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

作者: 泛坷 | 来源:发表于2019-01-02 05:29 被阅读19次

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

 button.widthAnchor.constraint(equalToConstant: buttonWidth).isActive = true
 button.heightAnchor.constraint(equalToConstant: buttonHeight).isActive = true

相关文章

网友评论

      本文标题:swift 布局(iOS9之后布局)自定义UIBarButton

      本文链接:https://www.haomeiwen.com/subject/ijdalqtx.html