IOS在酒吧备份按钮 [英] ios back button in the bar

查看:129
本文介绍了IOS在酒吧备份按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能与像在导航栏中使用的后退按钮形状的工具栏插入一个工具按钮?
这里是我的意思是:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆