summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/ThreadViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-09-30 23:42:46 +0300
committerGravatar Vitaly Takmazov2019-09-30 23:42:46 +0300
commit12f8f8f03ea1bd48d47e323fb8757a7f4fd676db (patch)
tree238923a63300b45f6058cc8c36cae9dcfa23cb44 /Juick/ViewControllers/ThreadViewController.m
parent671a1b82ea179bd67c1986b80e70bd95373754e7 (diff)
iOS 13 view stacks
Diffstat (limited to 'Juick/ViewControllers/ThreadViewController.m')
-rw-r--r--Juick/ViewControllers/ThreadViewController.m3
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];
}
}