user1256477 user1256477 - 11 days ago 4x
iOS Question

store all string into a file

Possible Duplicate:

Equivalent to R in iOS

I'm looking for something similar to the "string.xml" file in android for iphone programming.

In android, I store all strings into this file and use them by using the following code:


Does it exist in objective-c?



The getString and R files are part of the Android framework (not the Java language), and no, the Objective-C language does not have it either.

However, the iOS (framework) provides NSLocalizedString that is somewhat similar in that it allows you to have multiple versions of the string for localization purposes.

See String Resources for details.