I am working with 2 viewcontrollers and I am simply trying to do an unwind segue between the second and first viewcontrollers. My code for performing the segue does not throw any errors, but also dosen't do anything.
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
//get which one it is and send it back to the other viewcontroller!!!!
NSArray *tempComboArray = [[userCombosReadIn objectAtIndex:indexPath.row] componentsSeparatedByString:@","];
tempSelectName = [tempComboArray objectAtIndex:0];
for (int i = 0; i < [userCombosReadIn count]; i++) {
NSArray *tempCompareArray = [[userCombosReadIn objectAtIndex:i] componentsSeparatedByString:@","];
if ([tempSelectName isEqualToString:[tempCompareArray objectAtIndex:0]]) {
self.selectedComboString = [userCombosReadIn objectAtIndex:i];
break;
}
}
[self performSegueWithIdentifier:@"returnToBuildScreen" sender:self];
}
is the code that I use to call the unwind segue. I make the unwind segue by control dragging from the orange viewcontroller icon to the exit icon, then naming the unwind segue in the project outline. The outline calls in "unwind segue to Scene Exit placeholder". I dont know if that is wrong, or significant etc. The segue identifier is returnToBuildScreen and the action is returnToBuildScreen:.
In the .h file of the viewController I have a method that I think handles the unwinding segue, but I think thats where the issue may be
-(IBAction)returnToBuildScreen:(UIStoryboardSegue *)segue;
the circle next to the method declaration in the .h file is not filled in, which usually means it is not connected to anything in IB... I have an implementation for it in the .m file with a basic nslog function for debug purposes.
Like I said, It runs error free, but does nothing
Thanks in Advance