diff options
author | Vitaly Takmazov | 2019-09-30 23:42:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-09-30 23:42:46 +0300 |
commit | 12f8f8f03ea1bd48d47e323fb8757a7f4fd676db (patch) | |
tree | 238923a63300b45f6058cc8c36cae9dcfa23cb44 /Juick/ViewControllers | |
parent | 671a1b82ea179bd67c1986b80e70bd95373754e7 (diff) |
iOS 13 view stacks
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r-- | Juick/ViewControllers/ThreadViewController.m | 3 |
1 files changed, 2 insertions, 1 deletions
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]; } } |