[英]Adjusting the position of Navigation Bar Items in Swift
I'm currently designing a Navigation Bar in my storyboard and I wanted to bring my two right side navigation buttons closer together. 目前,我正在情节提要中设计一个导航栏,我想将两个右侧导航按钮靠得更近。
How would I go about this? 我将如何处理? All I have right now is just a regular view controller with a navigation bar on it and two buttons.
我现在所拥有的只是一个带有导航栏和两个按钮的常规视图控制器。
I do have my two buttons connected to my ViewController code so I would have no problem doing it programmatically or in the storyboard. 我确实有两个按钮连接到ViewController代码,所以我可以通过编程方式或在情节提要中进行操作。
一个可能的选择:在该位置将一个视图添加为单个项目,然后将按钮添加到该视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.