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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -