Questions tagged [wkinterfacetable]

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

88 questions
2
votes
3 answers

WatchKit app crashes when trying to set number of rows for a table

So, I have a WatchKit app with WKInterfaceTable in a main interface controller, outlet to the Storyboard is set so it's not nil, table row identifier is also set and matches the string, I'm using in setNumberOfRows:withRowType: method. Here is a…
Oleksandr Skrypnyk
  • 2,762
  • 1
  • 20
  • 25
2
votes
1 answer

WatchKit – Two tables in two pages, second page has first couple of rows super-narrow

I have the following setup in my WatchKit app: Two horizontal pages, which are configured programmatically via reloadRootControllersWithNames:contexts: Each page contains a WKInterfaceTable which loads some separate data. What I’m noticing is that…
Luke
  • 9,512
  • 15
  • 82
  • 146
2
votes
2 answers

Scroll to top of WKInterfaceTable in WatchKit?

I have a WKInterfaceTable in my storyboard. When a row is tapped, I make changes to the record display but would like to scroll to the top. How do I do this? This is what my code looks like so far: @IBOutlet var currentTable:…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
2
votes
1 answer

On select row of WKInterfaceTable transfer data to Iphone

I'm making watch app for iOS application. I get data from parent application in watch main InterfaceController and pass it to other InterfaceController for creating table. Here code of configuring table: -…
2
votes
1 answer

iOS WatchKit - How to add a row with multiple lines to WKInterfaceTable in Storyboard

I am trying to create a table that will have rows that contain 2 lines. The top line will contain 2 Labels with 50% width each and the bottom line would have 1 slider with 100% width. In storyboard, I can get the top line to have the 2 labels with…
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
2
votes
1 answer

WKInterfaceTable inside WKInterfaceGroup with static BG image behind?

I’m trying to display a static background image behind a scrolling WKInterfaceTable, that could contain one or more rows. I’m trying to do this by placing the table inside a WKInterfaceGroup, and setting that group’s background image. The issue is…
Luke
  • 9,512
  • 15
  • 82
  • 146
2
votes
1 answer

WKInterfaceTable not updating after calling removeRowsAtIndexes

Maybe I'm doing something wrong but if I call removeRowsAtIndexes: on a WKInterfaceTable instance like so: NSIndexSet *indexes = [[NSIndexSet alloc] initWithIndex:index]; [self.table removeRowsAtIndexes:indexes]; Should the table not update?…
Dave C
  • 85
  • 6
2
votes
2 answers

How can we port addGestureRecognizer( recognizer ) for WKInterfaceController

Below code is implemented using viewController can i do same thing for Apple Watch and add animation? let filteredSubviews = self.view.subviews.filter({ $0.isKindOfClass(UIImageView) })// 2 for view in filteredSubviews { // 3 …
Samrez Ikram
  • 591
  • 5
  • 15
2
votes
1 answer

WKInterfaceTable rows - remove round rect

How to remove the rounded corners which appear in WKinterfaceTablerows ?
Abhishek Bedi
  • 5,205
  • 2
  • 36
  • 62
1
vote
1 answer

Error when updating a WKInterfaceTable while an alert is shown

My watch extension displays a WKInterfaceTable when new data is available. This can happen any time. Depending on the situation, an alert can also be shown any time. The problem: When the WKInterfaceTable is updated while the alert is shown, I…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
1
vote
0 answers

Apple Watch - Get Width of Elements Programmatically - WKInterfaceTable, WKInterfaceGroup

How can I get the width of apple watch elements programmatically? WKInterfaceTable, WKInterfaceGroup, etc
MobileMon
  • 8,341
  • 5
  • 56
  • 75
1
vote
1 answer

How do I dismiss a WKInterfaceController that was presented with contextForSegue?

I have a WKInterfaceController with a WKInterfaceTable that lists some events a user has recorded in my app. A user can tap a row of the table to see more details about that event. To accomplish this, I've overridden…
gohnjanotis
  • 6,513
  • 6
  • 37
  • 57
1
vote
0 answers

Scroll only WKInterfaceTable - WatchKit

I have this situation: one WKInterfaceController within an WKInterfaceTable and a Group within one label. I want to do this: insert the group and below it the table but only table has to scroll and the group must be in the top of the…
1
vote
1 answer

Watch OS Swift Table load data in order

Watch OS 3/Xcode 8 allows for stand alone watch apps. Can someone provide the best Swift array/method for loading data to a table in storbyboard in order from Interface Controller, updating after each display. My code right now only selects the…
1
vote
1 answer

EXC_BAD_ACCESS while [WKInterfaceTable setNumberOfRows:withRowType]

I wanna to update table from a background thread using this part of the code __block typeof(self.tableB) self_tableB = self.tableB; [lwc setBaseControllerCallback:^(int ndx) { __block typeof(ndx) ndx_t = ndx; [[NSOperationQueue…
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194