开发者

How to set padding in UILabel in UIBuilder?

开发者 https://www.devze.com 2023-03-03 16:13 出处:网络
How can I specify the text offset (or if you prefer padding size) in my \"UILabel\" field in UIBilder ?

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 wou开发者_如何转开发ld like to specify padding (such as in css) because I'm also assigning a background color to the label.

thanks


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消