本文介绍了在 iOS 设备上访问以编程方式创建的日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经知道如何在我的 iPhone 应用程序中添加自定义日历,但我不知道如何将该日历添加到设备的日历中.从应用程序中查看时,该事件显示正确的日历,但即使我点击事件的日历行,我的日历也不在列表中,如果我想保持日历名称正确,我必须取消.有没有办法订阅"我本地创建的日历,以便我可以从设备上的日历应用程序中看到它(显然,我还希望它与用户的计算机同步等).

I have figured out how to add a custom calendar within my iPhone app, but I can't figure out how to add that calendar to the device's Calendar. The event shows the correct calendar when viewed from within the app, but even when I tap on the calendar row for an event, my calendar is not in the list, and I have to cancel if I want to keep the calendar name correct. Is there a way to 'subscribe' to my locally created calendar so that I can see it from within the Calendar app on the device (obviously, I would also want it to sync with the user's computer, etc).

推荐答案

和iCloud有关.当 iCloud 开启时,具有本地来源 (EKSourceTypeLocal) 的日历将被隐藏.

It has to do with iCloud. When iCloud is on, a calendar with a source that is local (EKSourceTypeLocal) will be hidden.

这篇关于在 iOS 设备上访问以编程方式创建的日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 09:28