我有一个使用情节提要的应用程序。当我开发它时,它针对的是 ios 5,一切运行良好。但是,当我尝试在 ios 6 模拟器中运行它时,我发现无法调用“PrepareForSegue”方法。(在这种情况下,我的项目的开发目标仍然针对 ios 5)。
这是我下面的 prepareForSegue 代码:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if ([[segue identifier] isEqualToString:@"sToHowManyTimesView"])
{
NSString *title=[relationshipStatus titleForState:UIControlStateNormal];
NHCThirdViewController *thirdView=[segue destinationViewController];
thirdView.infoRequest=title;
relationShipStatus.relstatus=title;
NSLog(@"%@",title);
}
else if([[segue identifier] isEqualToString:@"SinglePage"])
{
NSString *title=[relationshipStatus titleForState:UIControlStateNormal];
relationShipStatus.relstatus=title;
}
else if([[segue identifier] isEqualToString:@"toFifthView"])
{
NSString *title=[relationshipStatus titleForState:UIControlStateNormal];
NHCFifithViewController *fifthView=[segue destinationViewController];
fifthView.infoRequest=title;
relationShipStatus.relstatus=title;
}
}
请帮帮我。