Is there an IOS analog for the methods onSaveInstanceState and onRestoreInstanceState from Android?
Or does IOS just keep all of its ViewControllers alive for the duration of the application lifecycle?
Take a look at the State Preservation and Restoration section of the UIViewController documentation, and UIViewController's restorationIdentifier property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With