从 Xcode 的日历 iOS 应用中获取数据
Getting data from Calendar iOS App from Xcode
我正在开发一个基于 Swift 的应用程序,它需要一种管理日期和约会的方法。乍一看,我决定自己编写日历,但我认为将数据直接从日历应用程序获取到我的开发应用程序并让日历管理警报和约会创建会更好。话虽如此,有没有办法做到这一点?也许我可以使用内部 API 来与日历进行通信并在我的应用程序中获取所有约会,例如 JSON 或 XML?
有一个名为 Event Kit that's devoted to calendars and reminders. If you use it in your app, you'll have direct access to the user's calendar items. Rather than just using it for importing existing data, you should consider using Event Kit to store your calendar items, so that items that the user enters into your app are also available to and visible in other apps that use Event Kit, such as Calendar and Reminders. To learn how to do all that, you'll want to start with the Calendars and Reminders Programming Guide 的完整框架。
我正在开发一个基于 Swift 的应用程序,它需要一种管理日期和约会的方法。乍一看,我决定自己编写日历,但我认为将数据直接从日历应用程序获取到我的开发应用程序并让日历管理警报和约会创建会更好。话虽如此,有没有办法做到这一点?也许我可以使用内部 API 来与日历进行通信并在我的应用程序中获取所有约会,例如 JSON 或 XML?
有一个名为 Event Kit that's devoted to calendars and reminders. If you use it in your app, you'll have direct access to the user's calendar items. Rather than just using it for importing existing data, you should consider using Event Kit to store your calendar items, so that items that the user enters into your app are also available to and visible in other apps that use Event Kit, such as Calendar and Reminders. To learn how to do all that, you'll want to start with the Calendars and Reminders Programming Guide 的完整框架。