{"action":"opened","issue":{"url":"https://api.github.com/repos/aryaxt/iOS-Slide-Menu/issues/105","labels_url":"https://api.github.com/repos/aryaxt/iOS-Slide-Menu/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/aryaxt/iOS-Slide-Menu/issues/105/comments","events_url":"https://api.github.com/repos/aryaxt/iOS-Slide-Menu/issues/105/events","html_url":"https://github.com/aryaxt/iOS-Slide-Menu/issues/105","id":54288716,"number":105,"title":"Unable to push afer calling [[SlideNavigationController sharedInstance] popToRootViewControllerAnimated:YES];","user":{"login":"JoshNussbaum","id":5440616,"avatar_url":"https://avatars.githubusercontent.com/u/5440616?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshNussbaum","html_url":"https://github.com/JoshNussbaum","followers_url":"https://api.github.com/users/JoshNussbaum/followers","following_url":"https://api.github.com/users/JoshNussbaum/following{/other_user}","gists_url":"https://api.github.com/users/JoshNussbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshNussbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshNussbaum/subscriptions","organizations_url":"https://api.github.com/users/JoshNussbaum/orgs","repos_url":"https://api.github.com/users/JoshNussbaum/repos","events_url":"https://api.github.com/users/JoshNussbaum/events{/privacy}","received_events_url":"https://api.github.com/users/JoshNussbaum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-14T06:27:00Z","updated_at":"2015-01-14T06:27:00Z","closed_at":null,"body":"I have a right menu with a settings and logout button. When I click settings, I close the menu, set a conditional, and from my home screen I push segue to a settings view controller.\r\n\r\nFor the logout button, I call [[SlideNavigationController sharedInstance] popToRootViewControllerAnimated:YES]; function to go back to my login screen.\r\n\r\nIf I logout, then log back in and try to go to Settings from the right menu I run into an error: Terminating app due to uncaught exception 'NSGenericException', reason: 'Could not find a navigation controller for segue 'home_to_settings'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.\r\n\r\nWhen I change the segue to a modal segue I get this error:\r\n Warning: Attempt to present <SettingsViewController: 0x7fe1e2c51150> on <HomeViewController: 0x7fe1e063e620> whose view is not in the window hierarchy!\r\n\r\nSo, it seems like the Home view controller is no longer on the window hierarchy, or the navigation stack. I'm not really sure."}}