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;
Setting to button titleLable alignment also works perfectly.
btn.titleLabel.textAlignment=NSTextAlignmentCenter;