Skip to content
iOS UILabel subclass that replace the ellipses with any NSAttributtedString
Objective-C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DSExpandingLabelWithCustomEllipsis.xcodeproj
DSExpandingLabelWithCustomEllipsis.xcworkspace
DSExpandingLabelWithCustomEllipsis
DSExpandingLabelWithCustomEllipsisTests
.gitignore
Podfile
Podfile.lock
README.md

README.md

DSExpandingLabelWithCustomEllipsis

iOS UILabel subclass that replace the ellipses with any NSAttributtedString

Shrinked label to expanded label

Shrinked Label

Expanded Label

Usage:

self.myExpandingLabel.customEllipsisAttributedText = customEllipsis;
self.myExpandingLabel.attributedText = loremIpsum;
self.myExpandingLabel.didExpandBlock = ^(){
    NSLog(@"did tap label");
};
[self.myExpandingLabel setTruncatingForNumberOfLines:2];
You can’t perform that action at this time.