A WKInterfaceTable object creates and manages the contents of a single-column table interface in Apple's WatchKit SDK.
Questions tagged [wkinterfacetable]
88 questions
23
votes
6 answers
How can I reload the data in a WatchKit tableview?
I have an app for iPhone with a Tableview, whose data comes from CoreData.
The same data are also displayed in a watch app:
If I add a row from the iPhone app:
and I reload data in the Watch app:
I see the old rows empty!
If the stop the watch…

Ragazzetto
- 622
- 1
- 8
- 18
18
votes
8 answers
How to reduce the spacing between rows in WKInterfaceTable
I want to remove the spacing between the rows in Table, is there any property for it?

Mohit Totlani
- 825
- 1
- 10
- 21
15
votes
1 answer
WatchOS snap to next row on scroll in WKInterfaceTable
Apple's own Activity app has an interesting feature that I try to re-implement in my own watch app: Each page in the activity app is scrollable and basically has 2 vertical pages. The first page is the circle and the second page shows more…

bluebamboo
- 1,262
- 10
- 11
11
votes
3 answers
Why does method rowControllerAtIndex of WKInterfaceTable return nil?
When I run the code below, the method rowControllerAtIndex of WKInterfaceTable returns nil.
[self.outletTable setNumberOfRows:numberOfCategoriesToShow withRowType:@"rowTypeLabel"];
RowControllerTypeLabel *theRow = [self.outletTable…

John
- 8,468
- 5
- 36
- 61
9
votes
3 answers
How to create sections in WKInterfaceTable
How can we create sections in table as there is no delegate for it. And is there any other way for creating sections or do we have to use two tables.

Mohit Totlani
- 825
- 1
- 10
- 21
8
votes
3 answers
Watchkit: table with two templates in dynamic rows
How to instantiate two different templates of dynamic row in WKInterfaceTable? For only one template I use functions
[self.stocksTable setNumberOfRows: self.stocksData.count withRowType:@"TableRow"];
TableRow *row = [self.stocksTable…

vitalii
- 191
- 2
- 8
6
votes
2 answers
Apple watch: How to scroll only table contents, and not the whole watch user interface?
To learn watch programming, I have set up a little test app that consists only of an image and a table:
The app is executed by the iOS and watch simulators. Image and table contents are correctly set by the app.
When the table is too long to…

Reinhard Männer
- 14,022
- 5
- 54
- 116
6
votes
3 answers
My WatchKit wkinterfacetable won't scroll
Despite having more elements than fit the screen I can't seem to get a scroll behavior via touch or scroll wheel in the simulator or actual watch.

ferik
- 531
- 3
- 11
6
votes
2 answers
Apple Watch Table - first 4 rows not appearing
I'm having problems adding rows to WKInterfaceTable on Apple Watch. The weird thing is that no matter what I do, the first 4 rows appear as empty. I tried adding rows manually and in a loop - doesn't matter. I believe my code is good because 5th and…

gh0st
- 214
- 3
- 15
5
votes
2 answers
WKInterfaceTable & setNumberOfRows get crash "unexpectedly found nil while unwrapping an Optional value"
I'm working with WatchKit, I have a simple interface with only a table but I get an error with just a few lines of code, maybe I forgot something really basic.
My interface:
the row inside the table has the identifier:
and the custom class:
The…

Massimo Polimeni
- 4,826
- 4
- 27
- 54
5
votes
1 answer
Cannot specify setter 'setTitle:' for properties of NSObject or WKInterfaceController
I am trying to set up a WKInterfaceTable. I followed Apples docs. My Label is not getting text and I get this error message in console:
Cannot specify setter 'setTitle:' for properties of NSObject or WKInterfaceController
How can I fix this?…

Kreuzberg
- 894
- 1
- 9
- 18
5
votes
1 answer
WatchKit WKInterfaceGroup, one label on top of another?
Simple question: is it possible to stack one WKInterfaceLabel on top of another inside a WKInterfaceGroup? I’m dragging like a mad man and I cannot get the blue target line to setting above or below the first label. It’ll sit beside it, to its left…

Luke
- 9,512
- 15
- 82
- 146
4
votes
3 answers
didSelectRowAtIndex not being called for WKInterfaceTable
I have created a push segue in the storyboard from an WKInterfaceTableCell to another WKInterfaceController (called DetailInterfaceController).
When I tap on the row, didSelectRowAtIndex is not being called.
Does anybody know where I am going…

RileyDev
- 2,950
- 3
- 26
- 61
4
votes
3 answers
WKInterfaceTable how to identify button in each of the row?
I had for loop out 3 buttons in the table row and it will redirect to the related details when pressed.
Problem is how to identify which button users click? I have tried setAccessibilityLabel and setValue forKey but both do not work.

Ngo Yen Sern
- 105
- 4
3
votes
0 answers
Spritekit scene not visible in Watchkit table row
I have a SpriteKit scene that I want to show a progress ring, in each row of a table. However, the scene is not visible. I have tried it outside of a table so I know the RingScene is working ok, but I cannot get it to show in the table row. The row…

richc
- 1,648
- 5
- 20
- 48