tableview的delegate中有个方法是func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {your code...}跳转的页面写在code那里就好了