SWRevealViewController icon indicating copy to clipboard operation
SWRevealViewController copied to clipboard

Stop viewController from deallocating when change the front viewController through SWReveal.

Open MEnnabah opened this issue 7 years ago • 1 comments

Hi

I have a ChatLogVC as the main VC of the app, it has a SWRevealController as a side menu. Currently, we don't cache the data of the inside of ChatLogVC, so, when changing the front VC and going back to it, it's being reallocated.

Please provide me with any available option to solve this problem, thank you.

MEnnabah avatar Aug 28 '17 16:08 MEnnabah

You just have to save the instance of your controller somewhere! And when you change VC, present this one!

iDevelopper avatar Aug 28 '17 16:08 iDevelopper