Inherits from DTAttributedTextContentView : UIView
Declared in DTAttributedLabel.h

Overview

A Rich Text replacement for UILabel. It inherits from DTAttributedTextContentView and as such you can also set the delegate to provide custom subviews i.e. for images or hyperlinks.

Contrary to DTAttributedTextContentView the intrinsicContentSize is only as wide as the text content. To shrink the DTAttributedLabel to that call -sizeToFit.

Tasks

Setting Attributes

Properties

lineBreakMode

The line break mode of the receiver

@property (nonatomic, assign) NSLineBreakMode lineBreakMode

Declared In

DTAttributedLabel.h

numberOfLines

The number of lines to display in the receiver

@property (nonatomic, assign) NSInteger numberOfLines

Declared In

DTAttributedLabel.h

truncationString

The string to append to the visible string in case a trunction occurs

@property (nonatomic, strong) NSAttributedString *truncationString

Declared In

DTAttributedLabel.h