iOS Apprentice page 167

I cannot run the app based on the instructions on page 168 of which page 167 shows the code.

An error occurs because tableView.deselectRow(at: indexPath, animated: true) is not declared.

The red error indicated says "Use of unresolved identifier ‘tableView’

I would assume because this is not declared, right? Please advise on this.

It’s just a hunch, but you may have put the method outside the class. Make sure the } braces are in the right place.

Sorry, I deleted the project. Thanks anyhow.

This topic was automatically closed after 166 days. New replies are no longer allowed.