简体   繁体   中英

iPhone Tab bar icon are misaligned - iOS 7

I have an application that was initially built with iOS 4.0, but which is now iOS 7.0 + only.

I have a tab bar with 4 icons, and they used to be placed appropriately. But now, they are about 10 pixels higher than where they should be. (See images).

Before

标签栏之前

Now

在此处输入图片说明

The icons, the text or the nib files have not changed. I don't know where to look. Any ideas?

Please update your image dimensions according to : Apple Human Interface Guidelines

It has been changed for iOS 7.

调整tabbarItem imageInsets

navigationCtroller.tabBarItem.imageInsets = UIEdgeInsetsMake(7,0, -7,0);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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