我在添加左侧填充时遇到问题UIButton.我有一个UIButton带UIControlContentHorizontalAlignmentLeft.我希望文本显示在左侧,但它太左了.当我给边框时,它看起来不太好.我想在CSS中给出一些关于5px的文本填充.我用谷歌搜索解决方案,但找不到一个特别适合UIButton.在此先感谢您的帮助.
UIButton
UIControlContentHorizontalAlignmentLeft
xcode padding uibutton swift imageedgeinsets
imageedgeinsets ×1
padding ×1
swift ×1
uibutton ×1
xcode ×1