0

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.

Anthon
  • 69,918
  • 32
  • 186
  • 246
bhautikmewada191
  • 653
  • 1
  • 9
  • 20

2 Answers2

0

You should not place a Table inside a Group, as it will cause the issues you are experiencing.
Apple Docs:

Don’t embed tables inside groups. Tables resize dynamically based on the number of rows they contain; they ignore height restrictions placed on them by groups.

rmp
  • 3,503
  • 1
  • 17
  • 26
0

According to apples documentation you should use ScrollToRowAtIndex. "Table's Group set height sizeToFit Content" its not the problem. I faced the same issue and it seems like a bug, but with dispatch_async it worked just fine.

dispatch_async(dispatch_get_main_queue(), ^{  
    [self.table scrollToRowAtIndex:yourRowHere];  
});
error 404
  • 1
  • 1