How can I let the user ch开发者_开发技巧oose a specific localization in my app? I have a book and I'd like the users to be able to read all the different translations of it.
You'll need to implement your own localisation methods.
One way to do this is to subclass NSBundle and override -pathForResource:ofType:inDirectory:forLocalization:
and -pathsForResourcesOfType:inDirectory:forLocalization:
. In your overrides, read from NSUserDefaults or whatever to decide which localisation to use then manually find the right one.
精彩评论