Seems to be missing so I can no longer do
How to alignment the text of button to the left?
I can modify the frame but that doesn't work either.
Seems to be missing so I can no longer do
How to alignment the text of button to the left?
I can modify the frame but that doesn't work either.
Use this code:
yourButton.contentHorizontalAlignment = .left; //For horizontal alignment (.center, .left, .right, .fill)
yourButton.contentVerticalAlignment = .center; //For vertical alignment (.bottom, .center, .fill, .top)
Also you can set control alignment in the IB.