Shreyank
Shreyank

Reputation: 1549

For UIButton, I used title and image both. I want title should come first and than image

enter image description here

I want title "Alert" should come first and than image of Bell icon.

Upvotes: 0

Views: 353

Answers (1)

saurabh goyal
saurabh goyal

Reputation: 328

Possible Duplicate link

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).

Let me know if you still find any difficulty .

Upvotes: 1

Related Questions