按钮的内容靠左边对齐

button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

原文地址:https://www.cnblogs.com/lyz0925/p/5741689.html