ios - How to delete rows from UITableView based on date -


i have uitableview displaying entries, , underlying array entries. want delete entries older specific number of days.

my question is, performant way that?

  • go through array, compare dates , delete old entries , delete corresponding rows in tableview

or

  • go through tableview's rows, compare dates , delete rows , corresponding entries in array

does know best way this? there "best" way?


Comments

Popular posts from this blog

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -