找到可见的cell

            let tvc = self.childViewControllers[0] as! TimeViewController//找到需要的某个子视图控制器

            let cell = tvc.timeTableView.visibleCells.first!//找到可以看到的cell

            let indexPath = tvc.timeTableView.indexPathForCell(cell)//找到某个cell的indexPath 

            tvc.tableView(tvc.timeTableView, didSelectRowAtIndexPath: indexPath!) //把点击事件, 传到另外的页面进行

原文地址:https://www.cnblogs.com/hsxblog/p/5103834.html