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 have to run apptTable.removeRows
to de-allocate)?
Thanks
After you call
.setNumberOfRows
, theWKInterfaceTable
will be updated, so yes, the extra 3 rows in your example will be removed. There's no need to manually call removeRows.This is explicitly stated in the documentation as well: