tableView跳转传值可以通过tableView中的代理方法:- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath,也可以通过segue传值,这里写的是通过segue跳转传值两种常见情况
第一种情况:点击cell获取点击的IndexPath
tableView跳转传值可以通过tableView中的代理方法:- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath,也可以通过segue传值,这里写的是通过segue跳转传值两种常见情况
第一种情况:点击cell获取点击的IndexPath