NSAttributed object consisting of the characters and attributes within a given range in the receiver.
- iOS 3.2+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The range from which to create a new attributed string.
amust lie within the bounds of the receiver.
NSAttributed object consisting of the characters and attributes within
a in the receiver.
NSRange if any part of
a lies beyond the end of the receiver’s characters. This method treats the length of the string as a valid range value that returns an empty string.