Questions tagged [wkinterfacetable]

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

88 questions
1
vote
1 answer

WKInerfaceLabel is placed above WKInerfaceTable but don't want it to scroll with WKInterfaceTable

I have placed a WKInerfaceLabel above table but I don't want my WKInerfaceTable to scroll with table. How to achieve it in Apple Watch.
Mohit Totlani
  • 825
  • 1
  • 10
  • 21
1
vote
2 answers

WKInterfaceTable, WKInterfaceButton and action methods

I'm experimenting with WatchKit and I'm trying to accomplish something that may be obvious but I can't seem to figure out how. I have a single watch interface that contains a table with several rows of the same row controller, each containing two…
0
votes
1 answer

Left align some rows, right align others in WKInterfaceTable?

I'm trying to display a user's messages in a watchOS app and I'm using a WKInterfaceTable instance to do so. I would like outgoing messages to be right-aligned and incoming messages to be left-aligned but I can't get it to work. Here is the code I'm…
0
votes
1 answer

Swift - WatchKit: Setting background color for selected row on table (WKInterfaceTable)

Swift - WatchKit: How to set background color for selected row on watch tables? thanks in advance
Reza Kashkoul
  • 43
  • 2
  • 7
0
votes
1 answer

How to detect a tap on a WKInterfaceGroup added within a table row controller?

So this is my InterfaceController hierarchy: -> InterfaceController -> Table -> RowController -> Group A -> Group B -> Gesture I've also implemented override…
0
votes
1 answer

WKInterfaceTable is not getting populated with Codable data

My JSON object is not getting sent to my WKInterfaceTable. UITableView is populating correctly. Last step is to populate the WKInterfaceTable. The code is not throwing an errors in Xcode but there is a runtime crash because the cast is failing.…
TokyoToo
  • 926
  • 2
  • 10
  • 21
0
votes
1 answer

swift - populating WKInterfaceTable

following this tutorial... here for (index, labelText) in stringData.enumerate() { let row = myTable.rowControllerAtIndex(index) as! MyRowController row.myLabel.setText(labelText) getting an error message that says: Value…
Tom
  • 85
  • 1
  • 1
  • 9
0
votes
1 answer

Does setting setNumberRows de-allocate the unneeded rows?

I'm using a WKInterfaceTable on WatchOS. If for example the table already has 5 rows, and I .setNumberOfRows(2, withRowType: "rows") so that it now only has 2 rows, does that mean that the 3 rows that are no longer visible are deallocated (or do I…
SudoPlz
  • 20,996
  • 12
  • 82
  • 123
0
votes
1 answer

Reload data in WKInterface Table + Objective c

I am working on watch kit app. Here I want to highlight the selected row in table. My problem is when I select the row the image which is added to row is download again or you can say that list is blinked. I want only the row which I select update.…
0
votes
1 answer

WKInterfaceLabel Attributed String Fails on Width

I am using an attributed string to strikethrough text in a WKInterfaceLabel. This works up until the point where the text is longer than the width of the watch and therefore you see ... Actually the same thing happens on iOS; however, you can clip…
C6Silver
  • 3,127
  • 2
  • 21
  • 49
0
votes
1 answer

Changing WKInterfaceTable cells types

I need to display three different kinds of cells in my WatchKit app. Basically a multiliner to report the results, and two singleliners to report either errors or a waiting spin. I am going by trial and error by using an assortment of…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
1 answer

WatchOS background image stretching under table

I a table view in my watch app which I am trying to put an image behind. This is what it looks like in the storyboard: and this is what I want, but when I run it on the simulator with a number more rows it seems to stretch the background image…
0
votes
1 answer

Is it possible to use watchOS 3 vertical detail paging with a page-based interface?

I am looking to update my watchOS app with the latest watchOS 3 improvements, but I am running into an issue getting the new WKInterfaceTable vertical paging to work. It seems that vertical detail paging requires you to use the hierarchical…
RealCasually
  • 3,593
  • 3
  • 27
  • 34
0
votes
1 answer

WKInterfaceGroup in table highlights contained button on touch down

I have found if you implement a WKInterfaceTable, the row controller contains a WKInterfaceGroup, and if you add two WKInterfaceButtons to the group, one of which is disabled (or hidden), and you tap down on this button, it will highlight the entire…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

WKInterfaceTable: Swipe to edit like the stock Mail app

In the stock Apple Watch mail app you can swipe left to access more options for an email. How would I go about doing this with a WKInterfaceTable?
Benjy Wiener
  • 1,085
  • 2
  • 9
  • 27