Is it possible to adjust the x,y position for the titleLabel
of a UIButton
?
Here is my code:
UIButton *btn = [UIButton but
The easiest way to do it visually is to use the attribute inspector** (appears when editing a xib/storyboard), setting the "edge" property to title, adjusting it's insets, then setting "edge" property to image, and adjusting accordingly. It's usually better than coding it , since it's easier to maintain and highly visual.