Frage

I know that we can change the language in runtime by setting the value for "AppleLanguages" in user defaults. Can anyone suggest me how to achieve the following:

App is running->Press Home button -> Change Language in Settings -> Springboard will reload -> Double click the Home Button -> Take the App back to its original state with changed language, instead of restarting it. Is this possible ?

War es hilfreich?

Lösung

No you can't. Once Springboard is reloaded, all running apps are killed.

UPDATE: Thanks for @Mike's hint, iOS 6 introduced a new feature called State Preservation and Restoration. Read the links for more information. The App has to write handlers for preservation and restoration process in order to use this feature, and this feature is not guaranteed to have the app fully restored, as noted in the page (e.g. data model is not preserved).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top