UITabbarItem with image insets decreases size after tap

Number:rdar://21072905 Date Originated:22/05/2015
Status:Open Resolved:
Product:iOS SDK Product Version:8.3
Classification: Reproducible:Always
When image insets are applied to a UITabbarItem its size changes with every tap. Here is an example project: https://github.com/nderkach/TestTabs

Steps to Reproduce:
1. Set image insets on a UITabbarItem, i.e. like this: self.tabBarItem.imageInsets = UIEdgeInsetsMake(1, 0, 0, 0);
The insets could be any, except that top + bottom != 0 and left + right != 0
2. Tap on the UITabbarItem multiple times.

Expected Results:
Image size does NOT change.

Actual Results:
Image size changes, as if insets are applied on every tap.


This bug still exists as of the latest stable version of iOS/Xcode.

Reproduced using a vanilla tabbarcontroller, tabbar, and tabbar items. Just adding an image and insets. Tapping the same tabbaritem multiple times applies the inset every time (resulting in an ever smaller image)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!