单击表中的记录时,我正在查看详细信息视图。当我使用从详细视图调用后退按钮时
- (IBAction)loadDispensary
{
[self.navigationController popViewControllerAnimated:YES];
}
我收到无法识别的选择器错误。
我尝试通过以下两种方式推送详细控制器。
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