Apollo Apollo - 1 year ago 127
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download