如何让按钮UIButton的文字左对齐? 1.推荐两种方案:UIEdgeInsets titleEdgeInsets; 属性就行了,使用UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right)构造一个结构体,设置给btn即可。左对齐UIEdgeInsetsMake(0, -20,0 , 0);(数值自己看着调把) iOS 2023-10-07 116 点赞 1 评论 175 浏览