Pavel Yakimenko Pavel Yakimenko - 1 year ago 161
iOS Question

iPhone UIButton - image position

I have a

with text "Explore the app" and
Interface Builder
it looks like:

[ (>) Explore the app ]

But I need to place this
AFTER the text:

[ Explore the app (>) ]

How can I move the
to the right?

Answer Source

Set the imageEdgeInset and titleEdgeInset to move the components around within your image. You could also create a button using those graphics that is full size, and use that as the background image for the button (then use titleEdgeInsets to move the title around).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download