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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -