开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜