strangetimes
strangetimes

Reputation: 5183

WatchKit context menu, how to tell which row it was for?

I have a WKInterfaceTable in my interface controller and have added a Context Menu to the controller. On tap holding a specific row, the row depresses and displays the context menu. How do I know what row the menu is for?

Upvotes: 1

Views: 477

Answers (2)

bgilham
bgilham

Reputation: 5939

The context menu is for the entire view, it has no concept of where you tapped.

Upvotes: 2

Stephen Johnson
Stephen Johnson

Reputation: 5121

The following gets called on your WKInterfaceController.

- (void)table:(WKInterfaceTable *)table didSelectRowAtIndex:(NSInteger)rowIndex

Upvotes: -1

Related Questions