Apollo Apollo - 11 months ago 91
iOS Question

set uibutton text alignment storyboard

I know that in code I can do

[myButton.titleLabel setTextAlignment: NSTextAlignmentRight];
but how would I do this in Storyboard in User Defined Runtime Attributes?

Answer Source

How to make UIButton's text alignment center? Using IB

This post shows how to do it in storyboard.

enter image description here