aryaxt / iOS-Slide-Menu

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook
Other
1.53k stars 359 forks source link

App crashes when clicking Back from Second level push segue #67

Closed gulsharan-pv closed 9 years ago

gulsharan-pv commented 10 years ago

Hey Aryan, I really need some help on this issue that I'm facing. I'm currently working on app where I'm using your slide menu (great work, many thanks for sharing!). However, the app crashes when I try to come back from the 2nd push segue. A little help would be greatly appreciated as I've tried everything to get it to work, but have failed at all my attempts. TIA.

Here's what I'm doing:

This is how I'm switching to my view controller:

    UIViewController *userHome = [[UIStoryboard userHomeStoryboard] instantiateViewControllerWithIdentifier: @"UserHomeViewController"];
    [[SlideNavigationController sharedInstance] popToRootAndSwitchToViewController:userHome withCompletion:nil];

UserHome view controller is defined on a separate storyboard as shown below: screen shot 2014-08-24 at 12 12 44 am

Problem I can easily navigate all the way to Page B. However, when I hit the Back button, I get the following error:

 *** -[UIView willRemoveSubview:]: message sent to deallocated instance 0x11375ad80
aryaxt commented 10 years ago

Can you send me a sample project demonstrating this issue?

gauravgoyal1211 commented 9 years ago

I get same error somebody have any solution for that ..........?