0

我添加了这个方法didSelectRowAtIndexPath去下一个视图没有错误,但我不能去下一个视图。

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    detailhadith *detaihd = [[detailhadith alloc] initWithNibName:@"detailhadith" bundle:nil];
    [self.navigationController pushViewController:detaihd animated:YES];
    [detaihd release];
}
4

1 回答 1

0

你可以像这样添加一个子视图:[self.view addSubview:nextView.view];如果你没有导航控制器。

于 2011-06-20T15:16:34.763 回答