UIButton文字显示位置

button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;

你可能感兴趣的:(UIButton文字显示位置)