Returns a localized string intended for display in a notification alert.
- iOS 10.0+
- macOS 10.14+
- Mac Catalyst 13.0+Beta
- watchOS 3.0+
The key to use when looking up the string in the app’s
An array of values to substitute for escaped characters in the string.
A string whose value is created dynamically from a localized string resource. If a string resource corresponding to the specified
key cannot be found, the returned string is empty.
When configuring the content of a local notification using the User Notifications framework, use this method to create strings whose contents are stored in your app’s
Localizable file. When the notification is about to be displayed, the string object uses the key and arguments you specify to load the appropriate localized version of the string. If the localized string has any escaped character sequences—that is, special characters proceeded by a percent (%) sign—those character sequences are replaced by the values in the