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 ++- Juick/Main.storyboard | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 2 deletions(-) (limited to 'Juick') 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 { diff --git a/Juick/Main.storyboard b/Juick/Main.storyboard index dc9d8ae..6a7f2d2 100644 --- a/Juick/Main.storyboard +++ b/Juick/Main.storyboard @@ -1,5 +1,5 @@ - + @@ -113,6 +113,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3