Navigate from a ViewController to an another on didSelectRowAt programmatically

后端 未结 3 1030
傲寒
傲寒 2021-01-27 17:12

I have a UIViewController that contains a custom UITableView. The table has a custom UITableViewCell too.

How to navigate from the

3条回答
  •  野性不改
    2021-01-27 18:01

     override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
         let vc = yourCustomVCName (nibName: "yourCustomVC nibName" , bundle : nil)
         self.present(vc, animated: true , completion: nil)  
    }
    

提交回复
热议问题