John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 988 forks source link

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

Open MEnnabah opened 7 years ago

MEnnabah commented 7 years ago

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.

iDevelopper commented 7 years ago

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