Adding a new calendar programmatically to calendar app if user is using non iOS account

前端 未结 1 1957
心在旅途
心在旅途 2021-01-19 06:00

Can we add a new calendar to default calendar app programmatically if user is using any other account for calendars like yahoo or hotmail, I am getting following error:

相关标签:
1条回答
  • 2021-01-19 06:42

    Finally after a lot of research for few days , i found that Some EKExchange calendars like google , yahoo does not allow us to add events in their calendars . And if that is the case than you will get error with error code 17 as follows

    "Domain=EKErrorDomain Code=17 "That account does not allow calendars to be added or removed." "
    

    There is nothing we can do about this error, So i ended up giving alert to user that "We do not have rights to access your calendar account". Hope this helps someone if they face similar issue.

    0 讨论(0)
提交回复
热议问题