Reputation: 1659
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:
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?
Upvotes: 3
Views: 368
Reputation: 89
I searched the document for any constraints for transition, but I couldn't find it. https://developer.apple.com/documentation/watchkit/storyboard_elements/building_watchos_app_interfaces_using_the_storyboard/navigating_between_scenes
Tried with some patterns.
If you change Action Segue
of tableController from Push
to Modal
, you can transition.
Also, didSelectRowAt
is not called when joining with segue in Storyboard.
Upvotes: 0