{"action":"created","issue":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/559","repository_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController","labels_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/559/labels{/name}","comments_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/559/comments","events_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/559/events","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/559","id":139604334,"number":559,"title":"Problem re-showing UISplitViewController ","user":{"login":"thomers","id":453568,"avatar_url":"https://avatars.githubusercontent.com/u/453568?v=3","gravatar_id":"","url":"https://api.github.com/users/thomers","html_url":"https://github.com/thomers","followers_url":"https://api.github.com/users/thomers/followers","following_url":"https://api.github.com/users/thomers/following{/other_user}","gists_url":"https://api.github.com/users/thomers/gists{/gist_id}","starred_url":"https://api.github.com/users/thomers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomers/subscriptions","organizations_url":"https://api.github.com/users/thomers/orgs","repos_url":"https://api.github.com/users/thomers/repos","events_url":"https://api.github.com/users/thomers/events{/privacy}","received_events_url":"https://api.github.com/users/thomers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-03-09T15:15:04Z","updated_at":"2016-03-11T07:10:10Z","closed_at":null,"body":"I have a MasterDetail storyboard setup as created by the Xcode 7 project template, using a UISplitViewController as front view controller (and additional setup in AppDelegate application didFinishLaunching) as described in https://github.com/John-Lluch/SWRevealViewController/issues/518 . \r\n\r\n<img width=\"1657\" alt=\"screen shot 2016-03-09 at 15 56 58\" src=\"https://cloud.githubusercontent.com/assets/453568/13639546/85e0a3ee-e611-11e5-81f8-7879550d5997.png\">\r\n\r\n\r\n```\r\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\r\n self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];\r\n    self.window.backgroundColor = [UIColor whiteColor];\r\n\r\n    UIStoryboard *mainSB = [UIStoryboard storyboardWithName:@\"Main\" bundle:[NSBundle mainBundle]];\r\n    \r\n    UISplitViewController *splitVC = (UISplitViewController *) [mainSB instantiateViewControllerWithIdentifier:@\"SplitVC\"];\r\n    splitVC.delegate = self;\r\n\r\n    MasterViewController *masterVC = (MasterViewController *) [mainSB instantiateViewControllerWithIdentifier:@\"MasterVC\"];\r\n    UINavigationController *masterNav = [[UINavigationController alloc] initWithRootViewController:masterVC];\r\n    \r\n    DetailViewController *detailVC = (DetailViewController *) [mainSB instantiateViewControllerWithIdentifier:@\"DetailVC\"];\r\n    UINavigationController *detailNav = [[UINavigationController alloc] initWithRootViewController:detailVC];\r\n\r\n    splitVC.viewControllers = @[masterNav, detailNav];\r\n\r\n    // SWRevealViewController\r\n    UINavigationController *navController = (UINavigationController *) splitVC.viewControllers[splitVC.viewControllers.count-1];\r\n    navController.topViewController.navigationItem.leftBarButtonItem = splitVC.displayModeButtonItem;\r\n    splitVC.delegate = self;\r\n    \r\n    SWRevealViewController *swRevealVC = [mainSB instantiateViewControllerWithIdentifier:@\"SWRevealVC\"];\r\n    MenuTableViewController *menuVC = [mainSB instantiateViewControllerWithIdentifier:@\"MenuVC\"];\r\n    [swRevealVC setFrontViewController:splitVC animated:YES];\r\n    [swRevealVC setRearViewController:menuVC animated:YES];\r\n    \r\n    self.window.rootViewController = swRevealVC;\r\n    [self.window makeKeyAndVisible];\r\n\r\n\r\n```\r\n\r\nAfter app launch, the SplitViewController shows the MasterViewController, I can select an item and show the DetailViewController - so far so good.\r\n\r\nBut when I open the menu, select a menu item to show a different UIViewController (via SWRevealViewControllerSeguePushController segue type), and then want to show the UISplitViewController again (also via SWRevealViewControllerSeguePushController), the **Detail** ViewController is shown, instead of the **Master**ViewController.\r\n\r\nDo I have to setup something in code before the segue is performed (like in AppDelegate)?"},"comment":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/comments/195228036","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/559#issuecomment-195228036","issue_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/559","id":195228036,"user":{"login":"iDevelopper","id":1782450,"avatar_url":"https://avatars.githubusercontent.com/u/1782450?v=3","gravatar_id":"","url":"https://api.github.com/users/iDevelopper","html_url":"https://github.com/iDevelopper","followers_url":"https://api.github.com/users/iDevelopper/followers","following_url":"https://api.github.com/users/iDevelopper/following{/other_user}","gists_url":"https://api.github.com/users/iDevelopper/gists{/gist_id}","starred_url":"https://api.github.com/users/iDevelopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iDevelopper/subscriptions","organizations_url":"https://api.github.com/users/iDevelopper/orgs","repos_url":"https://api.github.com/users/iDevelopper/repos","events_url":"https://api.github.com/users/iDevelopper/events{/privacy}","received_events_url":"https://api.github.com/users/iDevelopper/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T07:10:10Z","updated_at":"2016-03-11T07:10:10Z","body":"Is this is what you want to do?\r\n\r\n[SWSplitApp.zip](https://github.com/John-Lluch/SWRevealViewController/files/168605/SWSplitApp.zip)\r\n"}}