在iOS设备上访问以编程方式创建的日历 [英] Accessing programmatically created calendar on iOS device

查看:138
本文介绍了在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设备上访问以编程方式创建的日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆