UIToolbar 上的按钮间距
我的 UIToolbar 上的按钮间距有问题,请查看此图像:
这是我当前的输出,它是 UIBarButtonItem 上的 UIButton,这不是我想要做的所需间距,我只是将其设置在其上nib 文件,它们无法彼此靠近。
这是我想要的输出。
你知道如何设置间距吗?通过代码还是通过它的 nib 文件?
提前致谢!
I am having a problem with the spacing of my button on my UIToolbar look at this images:
Here is my current out put it's a UIButton on a UIBarButtonItem and it's not the desired spacing that i am trying to do, i just set it on its nib file and they can't get any closer to each other.
and here is the output that i want.
Do you how can i set the spacing? by code or by its nib file?
thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 .xib 文件,那么您可以使用“灵活空格键按钮项或固定空格键按钮项”,
通过在工具栏项之间使用这些项,您可以分配它们之间的空间。
它非常方便并且效果很好
If you are using .xib file then you can use "Flexible space bar button Item or fixed space bar button item"
by using these between your toolbar items you can assign the space between them..
Its pretty handy and works good
通过这个我正在设置空间
by this i am setting space