Questions tagged [wkinterfacetable]

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

88 questions
0
votes
1 answer

Detect selected row with force touch watchkit

Is it possible to detect selected row index with force touch? Did force touch in tableView current row is highlighted. But i can't take info about him when context menu appears. TableView method -didSelectRowAtIndex: not called with this event.
0
votes
2 answers

Null value in Context in WKInterfaceTable didSelectRowAtIndex

I setup a watchkit table which works fine. But when I try to use the WKInterfaceTable didSelectRowAtIndex method with a value that should exist for the context, the context gives a null value. A test context value I created works fine and the method…
bachma0507
  • 1,543
  • 2
  • 11
  • 22
0
votes
1 answer

Adding new rows to WKInterfaceTable without reloading existing rows

I have a WKInterfaceTable that is populated with data from a json request (text + images), working just fine. Now I am trying to add new rows to the table with data from a new request. (So let's say, the initial load is 15 rows, and on user request…
klaaskox
  • 329
  • 4
  • 15
0
votes
1 answer

Different menu items for each row on a table

I have a table on a WKInterfaceController. I'd like to have a set of menu items (WKInterfaceMenu) when the user force-touches on some of the rows, and a different set of items for the other rows. Also, I want to make it so that when the user…
Alex
  • 5,009
  • 3
  • 39
  • 73
0
votes
1 answer

WKInterfaceTable and cells in storyboard not display cells in runtime.

I expecting create a static table with 3 cells (with contents). I create them in storyboard. However, in the runtime, the whole table is disappeared. How to display table and cells like iOS storyboard's static table view?
Yi Jiang
  • 3,938
  • 6
  • 30
  • 62
0
votes
1 answer

Transfer data from WKInterfaceTable to another WKInterfaceController

I am not familiar with transferring or passing data between two WKInterfaceController in Apple Watch. What I am trying to do is , I have some variable like name and age in SecondInterfaceController so I need to pass some value to them from…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
0
votes
1 answer

WatchKit-Distinguish among tables in table(table, didSelectRowAtIndex)

I have 2 tables in my WKInterfaceController. Clicking on their rows will push to different WKInterfaceController. I need to use override func table(table: WKInterfaceTable, didSelectRowAtIndex rowIndex: Int) because I need to pass a context…
Motoko
  • 1,062
  • 2
  • 15
  • 32
0
votes
2 answers

Need Help for WKInterfaceTable

I am using WKInterfaceTable. In Table's Group I have label with heigth set dynamic. When Table's Group set height sizeToFit Content. ScrollToRowAtIndex method is not working properly.
bhautikmewada191
  • 653
  • 1
  • 9
  • 20
0
votes
2 answers

How to implement scrollToRowAtIndex:animated: method in WKInterfaceTable

in WKInterfaceTable class,there is a method called scrollToRowAtIndex:(NSInteger)index,it just scrolls the row at the specified index into view with scrolling animation.I know that there isn't a method called scrollToRowAtIndex:(NSInteger)index…
tounaobun
  • 14,570
  • 9
  • 53
  • 75
0
votes
2 answers

Optimize WKInterfaceTable when loading data from NSURL?

I load the data from NSURL from internet and show up the data by WKInterfaceTable. My Table have about 82 rows with text inside each row. When I run the code, my table show up the data row by row and it's take about 2 - 3 seconds to show up all the…
Hieu Duc Pham
  • 1,074
  • 1
  • 10
  • 24
0
votes
1 answer

WKInterfaceTable, Row Controllers and Button actions in Swift

I'm having problems with a fairly basic task while experimenting with Apple Watch development in Swift. I recently received what appeared to be a perfect answer to the problem in Obj C but I can't seem to translate it. I have one Interface…
0
votes
2 answers

Need to Pass data when user tabs on Table View row to another DetailedInterfaceController in Watchkit

Hello I am new to IOS Watchkit Development. I need to pass the data when user tabs on the table row. I have tried both ways using segue and using the pushControllerWithName and even tried presentControllerWithName in the method…
Aadil Keshwani
  • 1,385
  • 1
  • 18
  • 29
0
votes
3 answers

Incompatible integer to pointer conversion sending nsinteger

I'm pushing to another WKInterfaceController when a row is selected but I can't seem to pass the rowIndex as context for my new controller which I would like to do. // Push to next controller and pass rowIndex as context -…
Mr. Slowpoke
  • 21
  • 1
  • 2
1 2 3 4 5
6