- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if ([segue.destinationViewController isKindOfClass:[OneVC class]]) { OneVC *one = segue.destinationViewController; one.oneStr = @"i`m one"; } if([segue.destinationViewController isKindOfClass:[TwoVC class]]){ TwoVC *two = segue.destinationViewController; two.twoStr = @"i`m two"; } }