在跳轉 控制器的 類裏面寫此方法
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if ([segue.identifier isEqualToString:@“toVc"]) {////這裏toVc是拉的那條線的標識符
TheViewController *theVc = segue.destinationViewController;
theVc.huiModel = pushModel;////傳的參數
theVc.isLastPushToThisVc = YES;////傳的參數
}
}
是不是很簡單~