From 12f8f8f03ea1bd48d47e323fb8757a7f4fd676db Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 30 Sep 2019 23:42:46 +0300 Subject: iOS 13 view stacks --- Juick/Main.storyboard | 83 ++++++++++++++++------------ Juick/ViewControllers/ThreadViewController.m | 3 +- 2 files changed, 51 insertions(+), 35 deletions(-) diff --git a/Juick/Main.storyboard b/Juick/Main.storyboard index 2438017..1ab86fe 100644 --- a/Juick/Main.storyboard +++ b/Juick/Main.storyboard @@ -1,11 +1,9 @@ - - - - + + - + @@ -20,14 +18,14 @@ - + - + - + @@ -48,7 +46,7 @@ - + @@ -71,10 +69,10 @@ - + - + @@ -89,7 +87,7 @@ - + @@ -107,7 +105,7 @@ - + @@ -123,24 +121,23 @@ - + - + - + - + - + - - + @@ -151,8 +148,7 @@ - - + @@ -206,7 +202,7 @@ - + @@ -231,7 +227,7 @@ - + @@ -252,10 +248,10 @@ - + - + @@ -282,11 +278,11 @@ - + - + @@ -325,7 +321,7 @@ - + @@ -337,7 +333,7 @@ - + @@ -366,7 +362,7 @@ - + @@ -416,7 +412,7 @@ - + @@ -442,7 +438,7 @@ - + @@ -461,7 +457,7 @@ - + @@ -473,6 +469,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Juick/ViewControllers/ThreadViewController.m b/Juick/ViewControllers/ThreadViewController.m index 1bc820a..3ea64f7 100644 --- a/Juick/ViewControllers/ThreadViewController.m +++ b/Juick/ViewControllers/ThreadViewController.m @@ -29,7 +29,8 @@ -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqual: @"replySegue"]) { Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row]; - NewPostViewController *postVC = (NewPostViewController *)segue.destinationViewController; + NewPostViewController *postVC = (NewPostViewController *)[((UINavigationController *)segue.destinationViewController) + .viewControllers firstObject]; [postVC setReplyTo:msg]; } } -- cgit v1.2.3