iOS7标签栏自定义图标高度 - 高度降低,直到图标变为不可见 [英] iOS7 tab bar custom icon height - height reduces until icon gets invisible
问题描述
我使用自定义图标大小实现标签栏以匹配设计:
I implemented tab bar with custom icon sizes to match the design:
通过设置条形项,缩小第一个和最后一个图标大小以适合圆圈线以下大小如下:
The first and the last icon sizes are reduced to fit below the circle line by setting the bar item sizes as follows:
仅在iOS7 +上发生的奇怪行为是当用户第二次点击已经激活的已调整大小的标签栏图标时 - 它的大小会减小:< br>
The strange behaviour that happens only on iOS7+ is that when the user taps already active resized tab bar icon for the second time - it gets reduced in size:
如果我再次点击它 - 它的尺寸太小而看起来不可见:
And if I tap on it again - it's size is so small that it appears invisible:
这不会发生在iOS5或iOS6上。
This doesn't happen on iOS5 or iOS6.
我在这里做错了什么或者减少标签栏图标大小的正确方法?
Is there something that I'm doing wrong here or any right method for reducing tab bar icon size?
推荐答案
你好可能会对你有用。给你的标签栏项目的尺寸为30x30像素和 @ 2x是60x60 。这对我来说很好。 图片插入给出全部(0,0,0,0)。
Hi may be this is will useful for you.Give the dimension of your tab bar items 30x30 pixels and @2x is 60x60.This is working fine for me. Image inset give the all (0,0,0,0).
这篇关于iOS7标签栏自定义图标高度 - 高度降低,直到图标变为不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!