After performSegueWithIdentifier:sender:
your view controler will call
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
assuming your new view controller has some propertys to set:
if ([[segue identifier] isEqualToString:@"NextView"]) {
MyViewController *myVC = [segue destinationViewController];
myVC.propertyToSet = // set your properties here
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…