문제

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 ?

도움이 되었습니까?

해결책

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

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