It was a big yesterday’s problem, that I could not move to third viewController so I could not even create a menu using tableView.
The problem was in the following code:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let desVC = segue.destination as! DescribtionViewController
desVC.descriptionOfTag = sender as! String
I got mistakes while trying to change VC.
Today I found the solution, just adding if statment:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == “moveSegue” {
let desVC = segue.destination as! DescribtionViewController
desVC.descriptionOfTag = sender as! String}
}
moweSegue is identifier for second viewController and if we do not go there we should not override “prepare”.