objective c - Programmatically add custom event in the iPhone Calendar but not deleted it -
i programmatically added event calendar want delete calendar create event id & use remove event calendar not work me please me.. here code use delete event , please me
ekeventstore *eventstore = [[ekeventstore alloc]init]; [eventstore requestaccesstoentitytype:ekentitytypeevent completion: ^(bool granted, nserror *error) { if (!granted) { return ; } //addeventgranted = 1; ekevent* eventtoremove = [eventstore eventwithidentifier:self.savedeventid]; if (eventtoremove) { nserror* error = nil; [eventstore removeevent:eventtoremove span:ekspanthisevent commit:yes error:&error]; } }];}
Comments
Post a Comment