Dev
Dev

Reputation: 3945

NSLocalizedStringFromTableInBundle : not getting values for key

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?

Upvotes: 3

Views: 5411

Answers (1)

Sudha Chandran B.C.
Sudha Chandran B.C.

Reputation: 82

Try This:

label.text = NSLocalizedStringFromTableInBundle(@"keyone", 
                 @"InfoPlist", 
                 AppDelegateObj.langBundle, nil));

Upvotes: 5

Related Questions