aneuryzm
aneuryzm

Reputation: 64874

How to set padding in UILabel in UIBuilder?

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

Answers (1)

Rayfleck
Rayfleck

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

Related Questions