0

我在 detailView (splitViewController) 控制器中添加了一个表视图。谁能告诉我如何使用这个表格视图来处理其他视图?它不和我一起工作。

4

2 回答 2

0

在您的 tableview didSelectRowAtIndexPath 方法中,您可以推送视图

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

        Otherview *otherview=[[Otherview alloc]initWithNibName:@"Otherview" bundle:nil];
        [self.navigationController pushViewController:otherview animated:YES];
         [otherview relese]
        }
于 2012-09-15T08:33:56.063 回答
0
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
dvController = nil;

}
于 2012-09-15T11:59:15.027 回答