Reputation: 6277
What is the most correct (logical, rational, elegant, understandable, right) way to align text label in the UIButton
same way as shown in picture? Please note that text field changes in runtime dynamically. Thanks.
Upvotes: 1
Views: 129
Reputation: 224
Make your button of "custom" type.
Init your UIImageView with frame (0,0,80,buttonHeight) then add as subview to your button.
Init your text label with frame (100,0,buttonWidth-100,buttonHeight) then add as subview to your button.
Upvotes: 1