hanangellove
2015-06-02 15:34:13 +08:00
你可以在didSelect方法中获取到当前点击的cell,然后把cell的属性赋给DetailController的属性
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSLog(@"选中cell");
UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath];
DetailViewController *detailViewController = [[DetailViewController alloc] init];
detailViewController.xxxproperty = cell.xxxxx;
[self.navigationController pushViewController:detailViewController animated:YES];
}