The documentation for NSString.localizedUserNotificationString(forKey:arguments:) says that “If a string resource corresponding to the specified key cannot be found, the returned string is empty.”. In reality however it appears that the “forKey” parameter is returned in such a case and not an empty string. This behavior is actually the useful behavior. Am I missing something?
Incorrect documentation for NSString.localizedUserNotificationString(forKey:arguments:)?
This behavior is actually the useful behavior.
And it’s also the behaviour for other Foundation localised string APIs. I recommend that you file a bug against the docs here. Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"