2012-03-05 2 views
3

를 반환합니다. 이 캘린더는 사용자 캘린더 목록에 없습니다. 이 속성을 보유하고 있습니다 :EKEventStore.calendars는 존재하지 않는 "달력"개체에게

EKCalendar <0x357700> {title = Calendar; type = Local; allowsModify = YES; color = #882F00; 

사용자가 이벤트를 저장할 수 있습니다. 이러한 이벤트는 IOS 일정에 표시됩니다. 누구나 이것이 어떤 종류의 달력인지 압니까? 일종의 기본 달력으로 보입니다. BTW : 사용자 캘린더는 모두 CalDAV 기반이므로이 객체에 대한 이유 일 수 있습니다.

답변

1

코드에서 사용자는 기본 앱에있는 모든 캘린더에 대한 완전한 액세스 권한이 없습니다. 당신은 단지 일정에 추가 할 수 있습니다, 당신은 새로운 이벤트를 추가 하려면

"You can fetch events based on a date range or a unique identifier, 
receive notifications when event records change, and allow users to create 
and edit events for any of their calendars. Changes made to events in a 
user’s Calendar database with Event Kit are automatically synced with the 
appropriate calendar (CalDAV, Exchange, and so on)." 

: 당신이 편집 기존 이벤트를 원하는 경우

"Event Kit provides limited access to a user’s calendar information. It is not 
suitable for implementing a full-featured calendar application." 

, 당신은 아무런 문제가 없을 것 그 사용자는 기본 캘린더 (설정 응용 프로그램에서)으로 선택했습니다.

"Creating and Editing Events 

    If the event property is nil when you present the view controller, 
the user creates a new event in the default calendar and saves it to 
the specified event store. 

    If the event property is nil when you present the view controller, 
the user creates a new event in the default calendar and saves it to 
the specified event store." 

모든 인용문은 Event Kit Programming Guide입니다.

+0

엉터리 포맷에 대해 사과드립니다. –

+0

[eventStore calendars]를 사용하여 모든 사용자 캘린더에 액세스 할 수 있습니다. 문제는 일부 기기에서 캘린더 응용 프로그램보다 한 개의 캘린더 ** ** **가 더 많이 표시된다는 것입니다. "코드에서 사용자는 기본 앱에있는 모든 캘린더에 대한 완전한 액세스 권한이 없습니다."라고 쓸 수 있습니다. 그것은 요점이 아니다. 위 참조. – Bertl

+0

@Bertl : 죄송합니다. iOS5.0 부분을 놓쳤습니다. 내 대답은

관련 문제