我在UIViewController
的容器中创建了一个UITableViewController
。单击某行时查看不会更改 - xcode ios
一切正常,直到我点击一个单元格为了查看用户的信息。
当我点击行应该去一个包含标签的视图,但它没有这样做(它停留在表的页面上)。
我知道它调用下面的函数,因为我把NSLog放在那里,当我点击一行时,它会显示出来。
有人可以帮我吗?谢谢!
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UINavigationController *tabController = [self.storyboard instantiateViewControllerWithIdentifier:@"TabNav"];
tabController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self.navigationController pushViewController:tabController animated:YES];
}
我该怎么做?我的意思是,我对前一个视图做了相同的过程,并且它工作正常... –
查看编辑答案。 – Greg
这个想法很有效,但由于表格在一个标签中,当我使用它时,它会打开我在此标签中调用的标签栏。 –