Returns the string for an attributed string.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
CFString Ref CFAttributedStringGetString(CFAttributed String Ref aStr);
Parameters
aStr
The attributed string to examine.
Return Value
An immutable string containing the characters from a
, or NULL
if there was a problem creating the object. Ownership follows the The Get Rule.
Discussion
For performance reasons, the string returned will often be the backing store of the attributed string, and it might therefore change if the attributed string is edited. However, this is an implementation detail, and you should not rely on this behavior.