如何添加“更多”按钮到标签栏? [英] How to add "more" button to Tab Bar?

查看:77
本文介绍了如何添加“更多”按钮到标签栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPhone应用程序在视图底部有一个标签栏控制器 - 此刻我有三个按钮。但是,我想添加更多,但为了这样做,我需要将三个按钮中的最后一个按钮变成更多...按钮,否则其他按钮上的文本会相互碰撞。

My iPhone app has a tab bar controller at the bottom of the view - and at the moment I have three buttons on it. However, I want to add more, but to do so I need to turn the last of the three buttons into a "More..." button, because otherwise the text on the other buttons runs into each other.

我知道如果标签栏中有超过5个按钮,那么它会自动创建一个更多的按钮 - 但是有没有办法通过编辑功能手动调用它?

I know that if you have over 5 buttons in the tab bar, then it automatically creates a more button - but is there a way to manually invoke this with the editing capabilities?

谢谢。

推荐答案

您不必手动创建更多.. 按钮。只需将所需的所有视图控制器添加到选项卡栏控制器,它将处理其余部分。

You do not have to manually create a "More..." button. Simply add all of the View Controllers that you need to the Tab Bar Controller and it will handle the rest.

这篇关于如何添加“更多”按钮到标签栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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