Reputation: 64874
How can I specify the text offset (or if you prefer padding size) in my "UILabel" field in UIBilder ?
The text starts exactly on the border, and I would like to specify padding (such as in css) because I'm also assigning a background color to the label.
thanks
Upvotes: 3
Views: 4505
Reputation: 12106
I think you'll have to embed your UILabel inside a wrapper UIView, offset the UILabel by setting it's frame x,y. Then specify the background color in the wrapper view.
Upvotes: 6