我目前正在使用的 iOS 应用程序:
RootViewController 通过连接到 UITableViewController
[self addChildViewController:tableVC];
将 tableVC.view 作为 rootViewControllers 视图的子视图。然后 RootVC 有一个 UIPanGestureRecognizer 用于动画显示表格左侧的平移。
这一切都很好,表格作为静态视图很棒,但是当你尝试开火时
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
通过点击一个单元格,它永远不会被调用。我已经检查过手势识别器是否意外注册了点击,但事实并非如此。
我是否需要以某种方式告诉 RootVC,当 tableView 在屏幕上时发送到子 UITableViewController?