Wednesday, 21 August 2013

Receiver () has no segue with identifier 'test''.......and more

Receiver () has no segue with identifier 'test''.......and more

I know the title of my issue is similar to others, but I have looked at
almost every other topic on this and nothing fixes my issue. Allow me to
explain:
I have this happening when I click a button (in my class ViewController.m):
MyQueryTableController *myController = [[MyQueryTableController alloc] init];
[self.navigationController pushViewController:myController animated:YES];
Now when I want to go to a different view from MyQueryTableController by
clicking on a table cell I have this:
[self performSegueWithIdentifier:@"test" sender:self];
which brings us to this error: 'Receiver () has no segue with identifier
'test''
I'm guessing this means that the myController is not on the storyboard or
something, so it doesn't recognize the segue.
To fix this, I tried declaring myController like this:
MyQueryTableController *myController = [self.storyboard
instantiateViewControllerWithIdentifier:@"table"];
and pushing it the same way:
[self.navigationController pushViewController:myController animated:YES];
When I do this, I get this error: 'NSInternalInconsistencyException',
reason: '-[UITableViewController loadView] loaded the
"wOE-Bf-310-view-jaT-Nk-xnR" nib but didn't get a UITableView.'
MyQueryTableController is a subclass of PFQueryTableViewController, which
I believe is a subclass of UITableViewController. I'm using Parse for my
backend.
Sorry if this is all confusing, but does anyone think they could make some
sense out of this?
Thanks

No comments:

Post a Comment