In my application i have a login view controller where a popover is shown with textfields for username and password. I am trying to switch between two apps and pass data.
APP1
and APP2
and then there are these two other viewcontrollers A1
and B1
in APP1
. He switching from both apps are working fine and the data is also getting passed. A1
and B1
to APP2
and when we switch back from APP2
to APP1
it comes at ViewController A1
or B1
depending on which viewcontroller it was invoked from. APP2
is a heavy application and consumes alot of memory for which ios sometimes kills APP1
and when i switch back it takes me to login screen. APP2
is completely optimized with regards to memory management (it includes mostly images). APP1
crashes, i want to bypass the login screen and take the user to A1
or B1
when switched back from APP2
. Any ideas on how to achieve this? It is an iOS 7
application.
Thank you.
Implement application:shouldSaveApplicationState:
and application:shouldRestoreApplicationState:
in the delegate.
This will save UICollectionView
, UIImageView
, UIScrollView
, UITableView
, UITextField
, UITextView
, UIWebView
.
For everything else, use applicationWillResignActive
to write code for saving state and application:didFinishLaunchingWithOptions
for retrieving the state.
Check the documentation here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.