I don't want to use a subview if I can avoid it. I want a UIButton
with a background image, text, and an image in it. Right now, when I do that, the image is on the left side of the text. The background image, text, and image all have different highlight states.
Ios – How to put the image on the right side of the text in a UIButton
ioslayoutuibuttonuser interface
Related Topic
- Android – How to show android checkbox at right side
- Ios – Set padding for UITextField with UITextBorderStyleNone
- Ios – Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets
- Android Drawing Separator/Divider Line in Layout
- Ios – Passing data between view controllers
- Ios – Color Tint UIButton Image
- R – Method to get the client ip address
- R – CMake: how do you copy private frameworks into the application bundle under OS X
Best Answer
Simplest solution:
iOS 10 & up, Swift:
Before iOS 10, Swift/Obj-C:
iOS 9 & up, Swift: (Recommended)