Something really weird is going on after our Swift 3 migration.
We have two view controllers, both of them implement UITableViewDelegate
and both of them implement public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
However only in one of them the actual method is called.
If I change in the one that doesn't work public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
to public func tableView(_ tableView: UITableView, didSelectRowAtIndexPath: IndexPath)
(notice the Swift 2.2 signature) then they both work.
Both view controllers are Swift classes, so I am not sure what the heck is going on. I am pretty sure it might be a Objective-C vs Swift interoperability issue, but our whole project is written in Swift, so that's why it's hard to figure out what is causing this.
Any help is appreciated. Thank you.