I am creating an app for watchOS 3
using Xode 8 beta 6.
When creating a WKInterfaceTable
with custom rows, I can't seem to get the selection working.
I do not want to perform a segue, I simply want to get didSelectRowAtrowIndex
called.
Setup:
- My row has an identifier
- The "Selectable" checkmark is set
- The custom class for my row is set
- WKInterfaceTable has an IBOutlet
- didSelectRowAt is implemented but is never called
The following function is not called:
override func table(_ table: WKInterfaceTable, didSelectRowAt rowIndex: Int)
{print("selected \(rowIndex)")}
My row does not have a segue set, which seems to be a problem others had. The table is part of a view that I open using a push segue
rootViewController -push-> myViewWithTableController -touchCell-> nothing happens
What am I missing?