I am new to iOS and I have a .strings file in which I store a disclaimer that is viewed when my application is opened.
However, I am having trouble figuring out how to call the “disclaimer” string from the disclaimer.strings file.
Help would be appreciated. Also, links to relevant pages are appreciated!
Well, first, rather than using a .string file, if there’s only the disclaimer in it, then I would just use a txt file:
On the other hand, if you want to do a localized version for each country, then just add it to your “Localizable.strings” file. Your code is just:
Then either use genstrings to collect all your Localizable strings, or create “Localizable.strings” (File\New\New File\ioS\Resource\Strings File), and then you can edit/add in the text:
Then you create a new language version of Localizable.strings and edit it with that country’s disclaimer.