Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed button textTitle frame based on title edge inset #96

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

brutella commented Jan 18, 2012

No description provided.

How would I center the text horizontally, and vertically, and both, using edge insets? When I use an iOS category on UIButton (renamed to TUIButton) to do it, the centering is slightly off.

Owner

brutella replied Mar 4, 2012

Use the textAlignment property of the TUILabel class, which is used by the TUIButton to draw the text.

Thanks!

Another question- how would I center the label to the right, halfway vertically? I can't get edge insets to work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment