skip to Main Content

Xcode – Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) func prepare

override func prepare(for segue: UIStoryboardSegue, sender: Any?) { switch segue.identifier { case toProductIdentifier: let destination = segue.destination as? ProductViewController destination?.configureProduct(for: products[selectedRowIndex.row]) default: break } } So I getting this error in line destination?.configureProduct(for: products[selectedRowIndex.row]) And here is a code for…

VIEW QUESTION
Back To Top
Search