Contents

localizedAttributedStringWithFormat:options:

Creates an attributed string by substituting a list of function arguments into a specially formatted string.

Declaration

+ (instancetype) localizedAttributedStringWithFormat:(NSAttributedString *) format options:(NSAttributedStringFormattingOptions) options;

Parameters

  • format:

    The format string to use to create the final string. For a list of format specifiers you can include in this string, see TP40004265.

  • options:

    Options for how to apply attributes to the string’s content.

Return Value

A new attributed string that combines the format string with the provided arguments and other information.

Discussion

Pass an optional list of trailing variadic arguments to substitute into the format string.

See Also

Creating a formatted string