Now I want to alignment the text of button to the left with code , how to do ? and I code this :
button.titleLabel.textAlignment = UITextAlignmentLeft;
You have to use contentVerticalAlignment and contentHorizontalAlignment of the button.
contentVerticalAlignment
contentHorizontalAlignment