Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added vertical text centering, added shadow property per issue #10 #13

Merged
merged 5 commits into from Aug 25, 2011

Conversation

LongWeekend
Copy link

Changed drawTextInRect: method to vertically center text that does not take up the full label size (mirroring the functionality of UILabel)

Also added the shadow capability -- extracted the drawing method to a helper since it's called twice with the exact same lines of code.

mattt pushed a commit that referenced this pull request Aug 25, 2011
Added vertical text centering, added shadow property per issue #10
@mattt mattt merged commit c624a11 into TTTAttributedLabel:master Aug 25, 2011
@mattt
Copy link
Contributor

mattt commented Aug 25, 2011

Wow, fantastic work, Mark. I'm seriously impressed how much you added with your pull request. That's enough to warrant another release, I'd say :)

Also, great job commenting through the bulk of the drawTextInRect method. That was a quite the beast before, but makes a complete sense with your notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants