Closed d6u closed 9 years ago
Looks like there's a simple fix for this which is to use usedRectForTextContainer: to calculate the bounds from the layout manager. The method currently used is giving the smallest possible bounds which excludes whitespace.
Fixed in the develop branch. Point your Podspec at the branch to try it out.
pod 'KILabel', :branch: 'develop'
I will do an official 1.0.1 bugfix release for this relatively soon.
This fixed the issue. Thanks! I really like your library. I tried TTTAttributedLabel before but it renders text differently when contains emoji or CJK characters. It would be really nice to add customized "links" other than just hashtag, mention, and urls. Great work!
No problem, thanks for the feedback.
If you want custom links have a look at the feature branch for issue #16 . It should be exactly what you want, would appreciate some feedback on that if you have any.
pod 'KILabel', :branch: 'feature/link-classifiers'
The left string was
I ♥ that #RainbowStarDay came back for week 2\n\nhttp://t.co/Am1qlGaYyP\n
.lineSpacing
is10
for KILabel.When you do https://github.com/Krelborn/KILabel/blob/master/KILabel/Source/KILabel.m#L550, the
textBounds
was incorrectly missing the last empty line, but including line spacing.