Pergunta

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 ?

Foi útil?

Solução

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).

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top