I have a root view controller A which push segues to a table view controller B. And when a row is selected in B. I want to use an unwind segue to go back to A and pass the text in the row back to the root view A. And then I use the the prepare for segue method to send the stint back like this:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
ViewControllerA *vca = (ViewControllerA *)segue.destinationViewController;
vca.textString = [[_objects objectAtIndex:indexPath.row] objectForKey:@"title"];
}
but what I don't know how to do, is to call the unwind segue in the didSelectRowAtIndexPath method.
Thanks for the help in advance.
didselectRowIndexAtPath
runs after the segue has completed. Thanks! – Recreate