如何更改UITabBarItem的宽度? [英] How to change the width of UITabBarItem?

查看:91
本文介绍了如何更改UITabBarItem的宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改UITabBarItem的宽度?

How to change the width of UITabBarItem?

我有一个带有标题的项目,它比默认项目的宽度还要宽.我该如何解决?

I have an item with the title, that is wider than default item width. How can I fix it?

推荐答案

我刚刚翻阅了文档,却没有找到调整UITabBarItem宽度的方法.

I just searched through the documentation and saw no method for adjusting the UITabBarItem's width.

一种可能的解决方案是在标签栏控制器中放置一个视图,以加载自定义的UITabBarItem,即适当的宽度.

A possible solution would be to place a view within the tab bar controller to load a custom UITabBarItem, that is the proper width.

这篇关于如何更改UITabBarItem的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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