UIButton设置 textAlignment 属性的方法

button.contentHorizontalAlignment =UIControlContentHorizontalAlignmentLeft;
button.contentHorizontalAlignment =UIControlContentVerticalAlignmentLeft;

你可能感兴趣的:(UIButton设置 textAlignment 属性的方法)