按钮文字居左

button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
button.titleEdgeInsets = UIEdgeInsetsMake(0, 5, 0, 0);

你可能感兴趣的:(按钮文字居左)