Instance Method

isEqualToAttributedString:

Returns a Boolean value that indicates whether the receiver is equal to another given attributed string.

Declaration

- (BOOL)isEqualToAttributedString:(NSAttributedString *)other;

Parameters

otherString

The attributed string with which to compare the receiver.

Return Value

YES if the receiver is equal to otherString, otherwise NO.

Discussion

Attributed strings must match in both characters and attributes to be equal.