캘린더 일정을 만드는 것이 문제가되는 기존 이벤트를 수정하고 있습니다. 식별자 5E5EA399-1852-4A50-8155-CD5CDCE69317와EKEventStore eventWithIdentifier로 인해 EKCADErrorDomain 오류가 발생합니다. 1010
가져 오는 동안 오류가 이벤트 : 오류 도메인 = EKCADErrorDomain 코드 = 1010 "작업이 모를 수가 나는 EKEventStore의 인스턴스에 대한 eventWithIdentifier를 사용하려고하면 그가 오류를 로그 아웃 객체 (EKCADErrorDomain 오류 1010.) "
나는이 오류에 대한 설명을 찾고 있었지만 행운은 없었습니다. 아무도 단서가 없었습니까? 여기에 관련 코드의 나는 EKEvent
개체에 대한 여러 식별자가 있습니다
if (!_eventStore)
{
_eventStore = [[EKEventStore alloc] init];
}
if ([_eventStore respondsToSelector:@selector(requestAccessToEntityType:completion:)]) {
// iOS 6 and later
[_eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) {
if (granted) {
EKEvent *event = [_eventStore eventWithIdentifier:_calEventIdentifier];
[self editCalendarEventWithOldEvent:event];
}
}];
} else {
EKEvent *event = [_eventStore eventWithIdentifier:_calEventIdentifier];
[self editCalendarEventWithOldEvent:event];
}
eventIdentifier를 가져 오기 전에 먼저 이벤트를 저장하십시오. 그렇지 않으면 nil이됩니다. – gmogames
@gmogames가 나를 위해 해줬습니다! 감사 :) –