我在XML文件中找到了点,所以我在两个视图控制器中找到了这些点:第一个视图显示图像视图和一个导航条,以通过一个segue回忆第二个视图控制器;在第二个视图控制器中,我解析XML文件以获得我将在图像中找到的位置的名称和坐标// Dispose of any resources that can be recreated.
- (void) prepareForSegue:(UIStoryboardSegue *)segue
从这个根视图出发,我试图用以下内容来做一个索引:
[self.navigationController performSegueWithIdentifier:@"Segue" sender:self];due to uncaught exception 'NSGenericException', reason: 'Could not find a navigation controller for segue'Segue'.