NSLocalizedStringFromTableInBundle : not getting values for key
-
13-07-2021 - |
Frage
I am not able to get values
for keys
from the InfoPlist
.
label.text = NSLocalizedStringFromTableInBundle(@"keyone",
nil,
AppDelegateObj.langBundle, nil));
In the InfoPlist.strings
there is a value
"keyone" = "value one";
When I am running my app it is showing UILabel
value as keyone
Why?
Lösung
Try This:
label.text = NSLocalizedStringFromTableInBundle(@"keyone",
@"InfoPlist",
AppDelegateObj.langBundle, nil));
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow