2009-06-12 63 views

回答

2

在你委托方法:线应读作的UITableViewCell *细胞= [的tableView的cellForRowAtIndexPath:indexPath],而不是作为indexpath.row在上面给定的代码在这里需要

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath] 
nextViewController.title = cell.text; 
[self.navigationController pushViewController:nextViewController animated:YES]; 

} 
+0

校正。 – 2011-11-03 17:59:36

相关问题