From e7e8cb7bdeb9a47afd9b20041d3d5965b558486b Mon Sep 17 00:00:00 2001 From: Joseph Kuziel Date: Sat, 31 Oct 2015 13:56:40 -0400 Subject: [PATCH] Fixed example radio elements not popping selection VCs off the nav stack --- sample/ExampleViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/ExampleViewController.m b/sample/ExampleViewController.m index aabec76d..53b80829 100644 --- a/sample/ExampleViewController.m +++ b/sample/ExampleViewController.m @@ -52,7 +52,7 @@ -(void)exampleAction:(QElement *)element{ - (void)displayViewControllerForRoot:(QRootElement *)element { QuickDialogController *newController = [QuickDialogController controllerForRoot:element]; - if (self.splitViewController!=nil){ + if (self.splitViewController!=nil && [self.splitViewController.viewControllers objectAtIndex:0] == self.navigationController){ UINavigationController * navController = [self.splitViewController.viewControllers objectAtIndex:1]; for (QSection *section in self.root.sections) {