Reputation: 563
I'm sure that can be done simply, but i haven't find any information about that. So the question is in title: How can i segue back from detail to table view pro-grammatically (when something happens i call a method which returns to UITableView
).
Upvotes: 0
Views: 202
Reputation: 613
When you have view controllers its either OliverM's solution or if you are not working on a navigation controller its
[self dismissViewControllerAnimated:YES completion:nil];
where completion can be a block where actions can be defined to do after the controller was dismissed
Upvotes: 0
Reputation: 884
If you did a segue-> push you can return in the detail view controller by
[self.navigationController popViewControllerAnimated:YES];
You don't need a segue for this, it is just reversing the push.
Upvotes: 2