如何自定义UITabBarController的“更多”按钮? [英] How To Customize 'More' Button of UITabBarController?

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

问题描述

我添加了UITabBarController作为RootView,我也知道当你有超过5个tabBarItem时会自动添加'more'按钮。

I added UITabBarController as RootView and I also know that 'more' button is automatically added when you have more then 5 tabBarItem.

所以它的所有工作完美但是我有两个问题:

So Its all Work prefect But I have Two Issues:

1)如何设置Image on'more'TabBarItem?

2)myTabBarItem未正确添加(参见图片了解更多)理解)其唯一的设计相关问题

1) how can i set Image On 'more' TabBarItem ?
2) myTabBarItem Not added properly (see image for more understanding) its only design related issue

图片说我的设置

self.tabBarController.tabBar.tintColor = [UIColor redColor];

我的UITabBarItem是橙色,所以在这里你可以看到我的tabBarItem不适合UITabBar而且不知道如何在'更多'按钮上添加图像。

And My UITabBarItem is Orange Color, So Here you can see that my tabBarItem not fit to UITabBar and also dont know how to add image on 'more' Button.

请帮助我解决这个问题。
提前致谢。

Please Help my On this Issues. Thanks in advance.

推荐答案

很遗憾,您无法在TabViewController中自定义更多按钮通过在那里设置自定义图像,这个标签栏应该由iOS自动创建。

Unfortunately you can't customize More button in TabViewController by setting custom image there, this tabbar is supposed to be created automatically by iOS.

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

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