0

所以我使用 tableview 来制作一个与搜索栏一起使用的列表,但现在我希望 tableview 中的部分在我按下它时导航/转到新视图/页面/屏幕,有人可以帮我吗?

4

1 回答 1

0

干得好:

 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath  {
    [[self navigationController] pushViewController:[[SecondViewController alloc] initWithNibName:@"SecondView" bundle:[NSBundle mainBundle]] animated:YES];
 }
于 2013-01-06T21:14:43.393 回答