Questions tagged [wkinterfacetable]

A WKInterfaceTable object creates and manages the contents of a single-column table interface in Apple's WatchKit SDK.

88 questions
3
votes
1 answer

WKInterfaceTable not selectable

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…
MikeB
  • 1,619
  • 2
  • 15
  • 27
3
votes
1 answer

Proportional table row height for 38mm Apple Watch

The default row height fits four rows exactly into the 42mm Watch. But on the 38mm Watch, the fourth row is cut off. In IB I have the generic "Installed" checked for the Table; for Images (e.g.) this leads to customizing sizes but I don't see any…
Andrew Duncan
  • 3,553
  • 4
  • 28
  • 55
3
votes
4 answers

Change color of row programmatically in WatchKit

I'd like to change the color of a row in a WKInterfaceTable if it has been selected. I've done these steps but don't know how I can go further: override func table(table: WKInterfaceTable, didSelectRowAtIndex rowIndex: Int) { let row =…
horst
  • 575
  • 1
  • 6
  • 15
3
votes
1 answer

Apple watch: Creating mail app style rows in WKInterfaceTable

I would like to be able to create rows for a WKInterfaceTable that, once the user slides them from right to left, show an extra control (like it happens with the mail app in the Apple Watch). Here is an image of the Mail app (please refer to the top…
mm24
  • 9,280
  • 12
  • 75
  • 170
3
votes
3 answers

WKInterfaceTable's didSelectRowAtIndex never gets called in WKInterfaceController

I have a WKInterfaceController and I added a table as following: // .h @interface InterfaceController : WKInterfaceController @property (weak, nonatomic) IBOutlet WKInterfaceTable *table; @end // .m - (void)table:(WKInterfaceTable *)table…
mm24
  • 9,280
  • 12
  • 75
  • 170
2
votes
0 answers

Swift-Watch: How to detect user scrolled to last row in WKInterfaceTable

I need to detect user scrolled to last row in Watch app. Code for WKInterfaceTable func loadTableData() { notificationTblView.setNumberOfRows(notifications.count, withRowType: "NotificationCellID") var index = 0 while index <…
McDonal_11
  • 3,935
  • 6
  • 24
  • 55
2
votes
0 answers

Non-scrollable view above WKInterfaceTable

Does anyone know if it is possible to have a view above a WKInterfaceTable that doesn't scroll? I am needing to have some information stay at the top as the user scrolls, but no matter what I try the group/view scrolls out of view.
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
2
votes
0 answers

WKInterfaceTable get scroll position (contentOffset.y)

In UITableView I can call tableView.contentOffset.y; in order to get where the user has scrolled. However, WatchKit's WKInterfaceTable doesn't support that. Is there any way to get the scrolling position in the WKInterfaceTable? Use case why this…
user2875404
  • 3,048
  • 3
  • 25
  • 47
2
votes
1 answer

WKInterfaceTable not creating rows

I'm trying to build a simple WatchKit app with a Table. Each row has a Label. Here's my TableRowController class: import WatchKit class TaskTableRowController: NSObject { @IBOutlet var taskName: WKInterfaceLabel! } In my InterfaceController,…
csstudent
  • 77
  • 2
  • 5
2
votes
1 answer

How to create a Static Table in WatchKit

I am creating a table in my WatchKit app but I want it to be a static table. How do I configure the table so it's static? I looked in the attributes inspector but there is no setting to change a dynamic table to a static table.
Harish
  • 1,374
  • 17
  • 39
2
votes
1 answer

WKInterfaceTable pull to refresh

Is it possible to create pull to refresh action in WKInterfaceTable in watch os 2? There is one question but its related to watch os 1. WatchKit pull to refresh
2
votes
0 answers

Swift - WKInterfaceTable not scrolling to bottom

i have 5 row controllers in WKInterfaceTable. I want to scroll to bottom of the table. messagesTable.scrollToRowAtIndex(6) From the apple documentation The index of the row to be displayed. Specifying an index less than 0 scrolls to the top of the…
Hassy
  • 5,068
  • 5
  • 38
  • 63
2
votes
1 answer

Intercept group selection in WKInterfaceTable

I have a group within a WKInterfaceTable and use the function didSelectRowAtIndex to intercept the selection of a row and do other stuff. It all works great except for the fact that as soon as the user touches the row I would like to change its…
user3903523
2
votes
1 answer

Apple Watch v1.01 Voice Over Accessibility of WKInterfaceTable rows doesn't work

I'm trying to get some simple Voice Over setup working on my Watch app. I use a WKInterfaceTable who's rows have multiple elements within them. At the moment voice over just goes over each individual element reading them out. I want to set that each…
jimbobuk
  • 1,211
  • 12
  • 25
2
votes
2 answers

WKInterfaceTable detect which row selected

I just need to check which row was selected to pass data between WKInterfaceController. Here is my code, but NSLog doesn't show anything: - (void)loadTableData { NSArray* items = [NSArray arrayWithObjects:@"cell 1 ",@"cell2 ", @"cell…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162