I’m viewing a detail view when clicking on a record from the table. When I call the back button from the detail view using
- (IBAction)loadDispensary
{
[self.navigationController popViewControllerAnimated:YES];
}
I get the unrecognized selector error.
I’ve tried pushing the the detail controller the following two ways.
Push type 1
detailViewController *detailView = [[self storyboard] instantiateViewControllerWithIdentifier:@"detailView"];
detailView.strain = self.selectedStrain;
[self.navigationController pushViewController:detailView animated:YES];
Push type 2
[self performSegueWithIdentifier: @"detailSegue" sender: self];
//Set the strain on the prepareForSegue
how the button is connected? can u show the code? perhaps you might have not properly linked the button to the IBAction.