Je veux remplacer mon UITableViewController
par un ViewController
avec un UITableView
à l'intérieur. Pour cela, j'utilise le code suivant :
@objc func buttonAction(sender: UIButton!) {
let newController = storyboard?.instantiateViewController(withIdentifier: "VcId") as! JobTableViewController
self.navigationController?.present(newController, animated: true, completion: nil)
}
Mais j'obtiens tout le temps cette erreur sur la deuxième ligne
Thread 1 : EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)