iphone - Is there any way to add identifier or tag custom event added in iCal? -


i setting reminder in app. have added custom event using ekevent ical. when retrieve events ical events present on day. there way get/retrieve events added through app only, tried eventidentifier property of ekevent readonly property. can help???

you loop through of calendar events match specific date not preferred method. each event created unique eventidentifier property. when save event can copy eventidentifier , next time want modify specific event can use ekeventstore eventwithidentifier method load event.

a sample might this

   ekeventstore *eventstore = [[ekeventstore alloc] init];    nserror *err;    ekevent *event  = [ekevent eventwitheventstore:eventstore];    //modify event properties save    [eventstore saveevent:event span:ekspanthisevent error:&err];    self.calendareventid = event.eventidentifier;     [eventstore release]; 

later if want retrieve saved event previous code following

   //self.calendareventid nsstring property declared in .h file , synthesized in .m    ekevent *myevent = [eventstore eventwithidentifier:self.calendareventid]; 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -