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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -