ios - Reorder EKReminder in a list -
is possible reorder ekreminders in ekcalendar of type reminders? in native reminders app possible, can't seem find option in api.
so, ekcalendaritem
objects have calendaritemexternalidentifier
unique event across devices. can use advantage ordering strategy.
every time fetch events calendar api, keep track of calendaritemexternalidentifier
in whatever persistence store choose (core data, sqlite, property lists, etc...) , keep track of it's order.
so if used core data might have entity 2 attributes, calendaritemexternalidentifier
, order
. whenever present events user, query persistent store order of each event , display accordingly. if new events come in, find highest order , increment there. when user re-orders, set order key appropriate record in persistent store.
Comments
Post a Comment