How do I set the title of a UIButton
to be left-aligned, and how can I show multiple lines of text in a UIButton
?
Ios – UIButton title alignment and multiline support
cocoa-touchiosiphoneuibuttonuikit
Related Topic
- Ios – Vertically align text to top within a UILabel
- Ios – Eliminate extra separators below UITableView
- Ios – Set UIButton title UILabel font size programmatically
- Objective-c – How to set the title of a UIButton as left-aligned
- Ios – UIButton remove all target-actions
- Ios – Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets
- Ios – Passing data between view controllers
- Ios – Autolayout – intrinsic size of UIButton does not include title insets
Best Answer
Here's the code to do the UIButton alignment in code too: -