下面是我创建的内容: TabBarController->NavigationController->TableView.我想创建一个新的TableView,当我在第一个UITableView中选择一个单元格时,它将被推送。我尝试使用pushViewController方法。它可以工作,但我不能回到我的第一个TableView (没有导航栏)。我也尝试在两个UITableView之间使用navigationBar,但收到消息“无法推送到导航栏”。有人能给我指路吗?谢谢
[self.navigationController pushViewController:TableView2 animated:YES]; (self是我的第一个UITableView)
发布于 2016-02-24 00:45:15
UINavigationControllershould exist before firstTableViewController. When the cell on firstTableViewis pressed, it should send an event toTableViewmaking use of delegate. After, push the secondTableViewController. After that, you can pop back to firstTableViewControllerfrom the secondTableViewController`.
https://stackoverflow.com/questions/21292738
复制相似问题