UIButton设置 textAlignment 属性的方法 button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; //水平方向 button.contentHorizontalAlignment = UIControlContentVerticalAlignmentTop //垂直方向; iOS 2024-09-14 25 点赞 0 评论 37 浏览