I have a tableview that is within a container view. When the user selects any of the rows, a method is called in the parent controller, which tells the parent controller to perform a segue. However, I am unable to figure out why it doesn't work. The code gets called from the didSelectRow -function in the tableView. The method does perform, but it gives me an error about no segue with that identifier.
However, when I call the method(listJobsOfSite) from within the parent view controller it works.
(tableview)
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.jobVC listJobsOfSite:@"locPwn"];
}
parent view controller
-(void)listJobsOfSite:(NSString *)site
{
[self performSegueWithIdentifier:@"JobSegue2" sender:nil];
}
EDIT: The segue is between view controller 1, and view controller 2. view controller 1 holds a container view, which again holds a table view controller. This tableview controller should tell view controller 1 to segue into view controller 2.
EDIT 2: screenshot http://tinypic.com/r/30x7dr9/8