Reputation: 1119
I'm trying to add a left and right margin to the content of a UIButton. I've always managed to to that with the previous version of Xcode by adding positive values to both left and right insets (lets say 8 for both) and by adding a positive left inset (lets say 8) and a negative one (-8) for the right inset of the Title (I've attached an image to clarify what I mean).
Unfortunately I've recently tried to do the same with the last version of Xcode but I can't anymore put negative values to Right Inset field. Have you noticed the same? Is this an Xcode issue or is a "feature" and I have to change the approach?
Thank you for your help :)
Upvotes: 4
Views: 945
Reputation: 856
It looks like a bug in Xcode. Try to set negative value by clicking stepper button on the right side of field. The value will not change, but you will see changes directly in xib. Then just close and reopen your project and you will see correct negative value.
Tested on the latest version of Xcode (7.1)
Upvotes: 4