Cleans up font, paragraph style, and attachment attributes within the given range.
- iOS 7.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
The character range within which to fix attributes. Raises an
rangeif any part of
rangelies beyond the end of the receiver’s characters.
Removes attachment attributes assigned to characters other than
character, assigns default fonts to characters with illegal fonts for their scripts and otherwise corrects font attribute assignments, and assigns the first paragraph style attribute value in each paragraph to all characters of the paragraph.
This method extends the range as needed to cover the last paragraph partially contained.
range if any part of aRange lies beyond the end of the receiver’s characters.
NSText subclasses that return
true from the
fixes method should avoid directly calling
fix or else bracket such calls with