Add ARC Support
…tyle properties apply to passed strings, but not attributed strings
When TTTAttributedLabel is set as the class for a UIView used in a UIStoryboard it will be created without a textColor. This will cause a crash when text is assigned to the label because NSAttributedStringAttributesFromLabel() attempts to assign a nil CGColor to the attribute dictionary. TTTAttributedLabel now defaults to black if no textColor has been set.
Fixed a regression caused by a641a21 that makes a long, top aligned label sometimes not draw the last line
The bug can be triggered by having the alignment being TTTAttributedLabelVerticalAlignmentTop and lineHeightMultiple being greater than 1 (1.03, for example). Matt's old code handled this well, but a641a21 broke it.
Avoid warnings on the latest LLVM
Make numberOfLines a signed int
…, and in one case we're subtracting 1 from it and could end up in a wrapped state.
Fixes a crash when the lastLineRange length is 0.
Any links in the last line of an attributed label are untappable
It looks like this line got messed up in all the merge craziness (e4a57).
…ith numberOfLines > 1 in iOS 4
…TAttributedLabel Conflicts: TTTAttributedLabel.m
Use early-return approach rather than setting flag to determine whether to call in
…gregori/TTTAttributedLabel into jasongregori-line-bounds-link-detection Conflicts: TTTAttributedLabel.m
Allow other text checking result types
Fix for link detection inaccuracy
Use CFIndex for indexes internally
Fix memory leak: truncationLine was not released
The previous logic used line's origins for detecting which line was being touched. But line origins in CoreText are the baselines of each line and don't count the descender of each line. As a results touches would not be detected for the bottom of each line.