defaultCalendarForNewEvents failed

前端 未结 8 2318
北海茫月
北海茫月 2020-11-29 01:25

When I try to call [newEventStore defaultCalendarForNewEvents], it returns an error message says:

[707:907] defaultCalendarForNewEvents failed: Error Domain         


        
8条回答
  •  没有蜡笔的小新
    2020-11-29 02:01

    Go to Simulator/Device settings/Privacy/Calendars/YourApp Tap ON to allow calendar access. And retry your code.It will work.

提交回复
热议问题