3

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?

Paul H
  • 65,268
  • 20
  • 159
  • 136
Dev
  • 3,885
  • 10
  • 39
  • 65

1 Answers1

5

Try This:

label.text = NSLocalizedStringFromTableInBundle(@"keyone", 
                 @"InfoPlist", 
                 AppDelegateObj.langBundle, nil));
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120