defaultCalendarForNewEvents failed

前端 未结 8 2303
北海茫月
北海茫月 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:11

    For Xamarin users:

    EKEventStore eventStore = new EKEventStore();
    eventStore.RequestAccess(EKEntityType.Event, (bool granted, NSError e) =>
    {
        if (granted)
        {
           //Your code here when user gief permissions
        }
    });
    

提交回复
热议问题