Task: I transfer a picture from one view of the controller to another. The picture is passed to the variable.
Question: Xcode asks to use the Navigator Controller before each ViewController. Therefore, we must somehow reformulate the line for getting the controller view (1 in the code)
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { //1 получаю вью контроллер, но ругается. **Could not cast value of type NavigationController to "Имя Вью контроллера"** let destinationVC: SaveAfterFilterScreen = segue.destinationViewController as! SaveAfterFilterScreen destinationVC.tempImage = imageFromCamera!.image! } 