Instance Method

setAttributedString:

Replaces the receiver’s entire contents with the characters and attributes of the given attributed string.

Declaration

- (void)setAttributedString:(NSAttributedString *)attrString;

Parameters

attributedString

The attributed string whose characters and attributes replace those in the receiver.

See Also

Changing characters and attributes

- appendAttributedString:

Adds the characters and attributes of a given attributed string to the end of the receiver.

- insertAttributedString:atIndex:

Inserts the characters and attributes of the given attributed string into the receiver at the given index.

- replaceCharactersInRange:withAttributedString:

Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string.