button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;(靠左)
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;(靠右)
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;(靠左)
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;(靠右)
本文标题:iOS button中的文字位置(靠左 靠右展示)
本文链接:https://www.haomeiwen.com/subject/ysrclctx.html
网友评论