When I run the code below, the method rowControllerAtIndex
of WKInterfaceTable
returns nil.
[self.outletTable setNumberOfRows:numberOfCategoriesToShow withRowType:@"rowTypeLabel"];
RowControllerTypeLabel *theRow = [self.outletTable rowControllerAtIndex:rowInTable];
What I've checked:
RowControllerTypeLabel
.Custom Class
of my label to my custom class RowControllerTypeLabel
. What am I missing?
For me - while the module was spelt out correctly - from copying and pasting of scenes / renaming classes - something went a miss and it was temporarily disconnected. I had to reselect the drop down for it to kick in.
I forgot to set the row controller's identifier rowTypeLabel
in the Attributes inspector.
I hope that this post will help others to find the problem in a shorter time than I needed.
To solve you have to set the row controller's identifier in the Attributes Inspector:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With