2

我想将所选 uitablevicell 中的文本显示到下一个视图的导航栏标题。对此有任何想法吗?

4

1 回答 1

2

在您的委托方法中:

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

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

}
于 2009-06-12T12:25:29.820 回答