invalidArgument
invalidArgument

Reputation: 2465

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

Tab bar before

Now

enter image description here

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

Upvotes: 1

Views: 188

Answers (2)

Vineesh TP
Vineesh TP

Reputation: 7963

Adjust the tabbarItem imageInsets

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

Upvotes: 0

Mrunal
Mrunal

Reputation: 14118

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

It has been changed for iOS 7.

Upvotes: 4

Related Questions