[Objective-C] iOS 16 Bug in NSLocalizedString

A string created from NSLocalizedString is an instance of _NSBPlistMappedString, which might cause an incorrect result of comparing 2 strings

There are 2 strings: one is created from and the other is passed from Swift. The result of comparing if 2 strings are equal is supposed to be , but it turns out to be .

BOOL isEqual = [swiftString isEqualToString: localizedString];

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Penny Ng

A passionate self-taught  iOS developer. Write to record my learning and share the knowledge. Twitter @pennyngpw