Open ttoggaiman opened 7 years ago
What are the leaked objects? Can you show a bit of code? You can't use SWRevealViewControllerSeguePushController in storyboard and pushFrontViewController in code. It is one or the other.
let vc = self.storyboard?.instantiateViewController(withIdentifier: "viewcontroller1") self.revealViewController().setFront(vc, animated: true)
our code works perfectly but if go back viewcontroller1 from viewcontroller2 memory leak happen
Exact same problem here! Any idea of a fix? Thanks a lot.
You don't have to instantiate viewcontroller1 to go back to it. Is is already in the navigation controller's stack as you pushed you push viewcontroller2 from it. To come back to viewcontroller1 just use the function:
func popViewController(animated: Bool) -> UIViewController?
How would you recommend dealing with multiple storyboards? should one use the storyboard segue or just push to the Viewcontroller (initial VC of the storyboard) ?
Could you elaborate please. I don't understand the question. What do you want to exactly?
@iDevelopper never mind sir, figure it out and it was not related to SWRevealViewController. thank you :)
Thanks for the help @iDevelopper.
In my case, I want to add a custom UIView to the top app ViewControllers Hierarchy, that is always visible and always on top of everything.
I added some customUI to the presentedViewController SWRevealViewController, but the view didn't add.
Any idea on how to do it?
Also looks like I am having a memory leak on the ViewControllers Hierarchy, not sure if due to the SWRevealViewController. After leaks, stack of controllers increases.
@manuelpaulo , Not sure I understand the question Could you provide a chart?
i am using setfront method to change front view.. but if i change viewcontroller1 from viewconroller24 .. memory leak happen! my method is below self.revealViewController().setFront(vc, animated: true) so i have changed setfont moethod to pushFrontViewController(vc, animated: true) but always memory leak happen
slide menu connected by navigation controller to first view controller(ex viewcontroller1,viewcontroller3)
but if i want to navigate viewcontroller1 -> viewcontroller2 or viewcontroller3->viewcontroller24 i 'am using show segue but.. is it correct? if my position viewcontroller24 but i want to change viewcontroller1 .. i use setfront ... but memory leak happen!