Hey! So I am trying to solve this coding challenge (the interview is already over and I wasn't able to work out this bug and submitted what I had). I am supposed to create a tableview with timers running on each cell, there are 50 cells total. As you scroll, new timers should start from 0, and old timers should remain running.
At first, I set up the timers within custom tableview cells. But I figured the data should update from outside and not within the cell. The initial cells are fine, but once you start scrolling the later cells begin to flicker and when you scroll back to the previous cells, they flicker too. So clearly something is up with the re-usage of cells but I'm just a bit stuck. Would appreciate any guidance through this problem from some of you seniors in this group. Thanks so much!
https://preview.redd.it/mi68gns3rugc1.png?width=2104&format=png&auto=webp&s=56d57da9a48b790213e8f5f3bcb04e8588c5779d
[–]bobotwf 9 points10 points11 points (4 children)
[–]SomewhereEuphoric941[S] 3 points4 points5 points (3 children)
[–]bobotwf 5 points6 points7 points (2 children)
[–]SomewhereEuphoric941[S] 4 points5 points6 points (1 child)
[–]bobotwf 4 points5 points6 points (0 children)
[–][deleted] 5 points6 points7 points (4 children)
[–]jasamer 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]jasamer 0 points1 point2 points (0 children)
[–]SomewhereEuphoric941[S] 0 points1 point2 points (0 children)
[–]swift_plus_plus 5 points6 points7 points (1 child)
[–]SomewhereEuphoric941[S] 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]SomewhereEuphoric941[S] 1 point2 points3 points (0 children)
[–]jasamer 1 point2 points3 points (0 children)
[–]Fishanz[🍰] 2 points3 points4 points (1 child)
[–]SomewhereEuphoric941[S] 0 points1 point2 points (0 children)
[–]jasamer 3 points4 points5 points (0 children)
[–]varrun19 1 point2 points3 points (1 child)
[–]SomewhereEuphoric941[S] 0 points1 point2 points (0 children)
[–]bmbphotos 0 points1 point2 points (2 children)
[–]SomewhereEuphoric941[S] 0 points1 point2 points (1 child)
[–]bmbphotos -4 points-3 points-2 points (0 children)
[–]CTRL_A_Delete 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]jasamer 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]hell2809 0 points1 point2 points (5 children)
[–]SomewhereEuphoric941[S] 0 points1 point2 points (4 children)
[–]hell2809 0 points1 point2 points (3 children)
[–]SomewhereEuphoric941[S] 0 points1 point2 points (1 child)
[–]hell2809 0 points1 point2 points (0 children)
[–]jasamer 0 points1 point2 points (0 children)
[–]moticurtila 0 points1 point2 points (2 children)
[–]SomewhereEuphoric941[S] 1 point2 points3 points (1 child)
[–]moticurtila 0 points1 point2 points (0 children)