在跳转 控制器的 类里面写此方法
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if ([segue.identifier isEqualToString:@“toVc"]) {////这里toVc是拉的那条线的标识符
TheViewController *theVc = segue.destinationViewController;
theVc.huiModel = pushModel;////传的参数
theVc.isLastPushToThisVc = YES;////传的参数
}
}
是不是很简单~