简体   繁体   English

如何在标签栏项目中显示大标签栏名称

[英]How to display the large tab bar name in the tab bar item

I created a tab bar controller with 3 tab bar items and the tab bar items names are very large and they are displaying names on one over the other. 我创建了一个带有3个选项卡栏项目的选项卡栏控制器,并且选项卡栏项目的名称非常大,并且它们彼此之间显示名称。 i want to display the name in short way. 我想以简短的方式显示名称。 for example: tab bar item name is: ("Iphone Real Device") i want to display it as (Iphone...) Can any one help me in this issue please...... 例如:标签栏项目名称为:(“ Iphone Real Device”)我想将其显示为(Iphone ...)在这个问题上,任何人都可以帮助我......

Thanks in advance.......... 提前致谢..........

Make it programitically. 以编程方式使其。 set the frame for tabBar and then add the tabs to the taBar. 设置tabBar的框架,然后将选项卡添加到taBar。 it automatically uses .... if your text is bigger that the tab frame. 如果您的文字大于标签框,它将自动使用....。

Edit: I think you cant set the frame for tabs. 编辑:我认为您不能设置选项卡的框架。 so you need to hard code the title like this 所以你需要像这样硬编码标题

blab.. 胡扯..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM