我有一个 UIViewController,我必须将一个值(UIImage,NSString)传递给我正在使用的 UINavigationViewController
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
AppDetail *advc = [segue destinationViewController];
if ([[segue identifier] isEqualToString:@"showDetail"]) {
advc.appTitel = name;
advc.appIcon = icon;
advc.detailAppName = detileName;
advc.appDescription = description;
advc.appDeveloper = developer;
}
}
将值传递给UIViewController
,如果我直接将它传递给 a ,它可以完美地工作UIViewController
,但我不能将它传递给 a UINavigationViewController
,有人知道我该怎么做吗?