iPhone app: recover view after didReceiveMemoryWarning
Posted
by mga
on Stack Overflow
See other posts from Stack Overflow
or by mga
Published on 2009-10-07T06:05:50Z
Indexed on
2010/06/02
21:14 UTC
Read the original article
Hit count: 444
The app in question has a MainView->ModalView
pair. The ModalView
is shown via UIModalTransitionStyleFlipHorizontal
. In case of didReceiveMemoryWarning
, MainView
is dumped (since it is not visible) and the app stays "alive" but when you flip back there is a (very) short period of time when the screen is blank (since the modal dialog is returning to a now-deallocated view). When the animation transition is over, MainView
is regenerated and all is ok.
I just would like to somehow regenerate MainView
before returning from ModalView
(in case of a memory warning).
Is this a good idea? Am I doing something wrong as far as the warning is concerned?
Thanks
© Stack Overflow or respective owner