I have tableView, in which there are imageView and label, when i select cell I want to push another viewController and show in it my selected cell imageView.image and label.text, but there is error that (Unexpectedly found nil while implicitly unwrapping an Optional value) in image line
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let vc = storyboard?.instantiateViewController(withIdentifier: "PushedViewController") as? PushedViewController
vc?.pushedImage.image = UIImage(named: imagesArray[indexPath.row])
vc?.pushedLabel.text = imagesArray[indexPath.row]
self.navigationController?.pushViewController(vc!, animated: true)
}
Unexpectedly found nil while implicitly unwrapping an Optional value