iOS7 tab bar custom icon height - height reduces until icon gets invisible

自闭症网瘾萝莉.ら 提交于 2019-12-10 19:18:27

问题


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:

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:

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?


回答1:


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).



来源:https://stackoverflow.com/questions/22452582/ios7-tab-bar-custom-icon-height-height-reduces-until-icon-gets-invisible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!