In my UITableView, I have 2 rows. I’m trying to disable the 2nd row and so I have done the following shown in the picture. When I run the program, although the row is not able to push onto another view, the blue highlight still flashes when I click on it.
So, I have put the bit of code also shown below in the if (indexPath.row == 1) expression, but an error has come up.
How can I get rid of the error?
Thanks.

put
after
ifand then put the code inside and then writeelse.. 😀 rookie mistake.