How to update UITableViewCells using NSTimer and NSNotificationCentre in Swift

后端 未结 2 1502
半阙折子戏
半阙折子戏 2020-12-24 09:32

NOTE: Asking for answers in Swift please.

What I\'m trying to do:

  • Have tableview cells update every 1 second and disp
2条回答
  •  不思量自难忘°
    2020-12-24 10:22

    As Ian MacDonald has suggested you should avoid reloading the cell when the timer ticks, if you are swiping. Also drop the NSNotification, as It and timer are essentially doing the samething

提交回复
热议问题