Apollo Apollo - 1 month ago 12
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

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

This post shows how to do it in storyboard.

enter image description here