IOS在酒吧备份按钮 [英] ios back button in the bar
问题描述
有可能与像在导航栏中使用的后退按钮形状的工具栏插入一个工具按钮?
这里是我的意思是:
it's possible insert a toolbutton in a tool bar with the shape like the back button used in the navigation bar? here is what I mean:
在此先感谢!
推荐答案
您不能做到这一点,至少不会有后退按钮的形状,一个带箭头的左端。 backBarButtonItem
只是UINavigationItem的一个属性。
You can't do it, at least not with the shape of a back button, the one with the arrow end on the left. backBarButtonItem
is only a property of UINavigationItem.
您可以使用一个矩形按钮工具栏上要回去(虽然我不认为苹果是喜欢...你应该阅读的iOS人机界面指南),
You can either use a rectangular button on your toolbar to go back (although I don't think Apple is fond of that... you should read the iOS Human Interface Guidelines),
或您可以在屏幕上其他地方添加自定义后退按钮。例如,如果您的工具栏是在底部可以按钮添加自定义回屏幕保持整洁的左上角。这样一来,你会保存有一个导航栏只是后退按钮的屏幕空间。
OR you can add a custom back button somewhere else on the screen. For instance, if your toolbar is at the bottom you can add a custom back button to the top-left corner of the screen to keep things tidy. This way, you would be saving the screen space of having a navigation bar just for the back button.
这篇关于IOS在酒吧备份按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!