What I'm trying to achieve is to have middle tab image stretched on different resolutions (i5, i6, i6+...), there are 5 tabs so middle one is always 1/5 of screen width.
This code is not stretching on full width of middle tab:
UITabBarItem *timelineTabBarItem = [[UITabBarItem alloc] initWithTitle:@"Middle"
image:[[[UIImage imageNamed:@"tab3-on"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 31, 0, 32)] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
selectedImage:[[[UIImage imageNamed:@"tab3-off"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 31, 0, 32)] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
timelineViewController.tabBarItem = timelineTabBarItem;
On i6+ I see image in center of tab.
What I'm missing / how to fill tab image correctly?
Update:
Here is preview image: https://i.stack.imgur.com/H1xUD.png
Green is original image that should cover dark blue area.