需求: 在 tableView 中实现 case 1 :显示一个界面,点击某一行后,不需响应 case 2 :显示另一个界面,点击某一行后,有对应响应 解决方案: 在 cellForRowAt 函数中分别实现对应 cell 的显示 func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { //进行判断