I need to localize my setting screen text dynamically based on the iphone setting language/user preferred language. In my scenario, localized text are fetching from the server. I am storing text in database and showing it on the screen. Setting screen should be localized based on the user preferred language/device language. I tried to access the title string of an Item in Root.plist. But it returns value but i need title. How can i access/change the title of the item.
for eg:
{
DefaultValue = 1;
Key = "enabled_preference";
Title = "Keep me logged in";
Type = PSToggleSwitchSpecifier;
}
[[NSUserDefaults standardUserDefaults]valueForKey:@"enabled_preference"];
which return the value as 1 but i need the title "Keep me logged in" which needs to be changed.
i need a "Title" to be localized (ie) instead of using .lproj file, i have set of localized strings in a dictionary. i need to the set the title with value from dictionary.
How can i accomplish this.
Thanks