From 65771b0d70a26aab2c71602390280c41b6bb6862 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 19 Nov 2021 17:37:43 +0300 Subject: Initial split view integration --- Juick/AppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Juick/AppDelegate.m') diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index cf2099a..da72111 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -160,7 +160,8 @@ } - (UINavigationController *) navigator { - return [[(UINavigationController *)self.window.rootViewController viewControllers] firstObject]; + UINavigationController *secondaryNavigationController = [(UISplitViewController *)self.window.rootViewController viewControllers][1]; + return [[secondaryNavigationController viewControllers] firstObject]; } - (void)presentThread:(UIViewController *)vc { -- cgit v1.2.3