navigation bar right bar button items spacing

前端 未结 10 2092
执念已碎
执念已碎 2021-01-31 16:47

I have created a with left bar button item added from storyboard, titleView and three right bar button items from code.

Here is the code:

override func         


        
10条回答
  •  太阳男子
    2021-01-31 17:24

    Set testButton.frame doesn't help.

    This solution is correct for me!

    rightButton.imageEdgeInsets = UIEdgeInsets(top: 3, left: 10, bottom: 7, right: 0)
    

提交回复
热议问题