[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 NSLocalizedString
and the other is passed from Swift. The result of comparing if 2 strings are equal is supposed to be YES
, but it turns out to be NO
.
BOOL isEqual = [swiftString isEqualToString: localizedString];