I have a UIButton that is set up like this:
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.backgroundColor = [UIColor redColor];
[self addSubview:button];
[button setTitle:@"myButton" forState:UIControlStateNormal];
The result looks like this (non red colors are background behind the button):
If I set [button setContentEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 0)]
the result looks the same.
If I set [button setContentEdgeInsets:UIEdgeInsetsMake(1, 0, 1, 0)]
the result looks like this:
If I set [button setContentEdgeInsets:UIEdgeInsetsMake(-1, 0, -1, 0)]
the result looks like this:
Why does it look like having a positive content inset for top and bottom of 1.0 gives a smaller content inset than 0 (which I understand from the docs is the default)? I am running in Xcode 6 and iOS 7.