문제

I want to be able to update localized strings file at runtime, but is not possible.

I thought about this: My app uses web service. So I could have a web service that returns a .strings file and the file would be saved on the apps directory.

Now the problem: How can I change the NSLocalizedString to read from my file? Is it possible?

The app is not for apple store, so is not a problem if apple does not approve changing the app language.

도움이 되었습니까?

해결책

You can download the data into a bundle in your sandbox and use NSLocalizedStringFromTableInBundle() to get the proper localisation using the built in system.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top