单击其他选项卡栏项目时,自定义选项卡栏会调整大小 [英] Custom tab bar resizes when ever the other tab bar item is clicked

查看:44
本文介绍了单击其他选项卡栏项目时,自定义选项卡栏会调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我启动模拟器时,这就是我的标签栏.

This is my tab bar when ever I launch my simulator.

但是,当我单击其他标签栏项目时,其他图标会发生如下变化:

But, when ever I click the other tab bar items, the other icons changes as shown below:

我希望我的标签栏图标看起来像第一张图片,即使我点击了其他标签栏项目.需要帮忙!(我是IOS新手)

I want my tab bar icons to look like the first picture even if I click other tab bar items. Need help! (I am new to IOS)

推荐答案

对于自定义标签栏图像,您必须使用尺寸为 25x25 的 .pdf 文件.
您可以在 Apple 文档中阅读更多相关信息.

For custom tab bar images, you have to use a .pdf file with the dimensions of 25x25.
You can read more about this on Apple's Documentation.

这篇关于单击其他选项卡栏项目时,自定义选项卡栏会调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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