Does the iOS SDK give access to the Calendar picker used by iPhone's built-in Calenar app?

北慕城南 提交于 2019-12-13 05:43:56

问题


I've dug around a bit in the Eventkit/EventkitUI docs and couldn't find an answer. Does the iOS SDK provide a way to display the Calendar chooser view that the built-in Calendar app uses when you want to move an event to a different calendar? If not, what would be the best way to build that? How do I know which account each calendar is from? How do I display the little color dot? Are there any 3rd party libraries that provide something like this?

Thanks!

EDIT: Specifically I'm asking about this screen:


回答1:


You don't get the UI for free, but you can get a list of the user's calendars with an EventStore's Calendar property.




回答2:


You cannot distinguish between the calendar events. They all belong to one calendar by default. Event Kit only allows you to add, edit events on the default calendar. And you will need to use either third party calendar to replicate the UI or you will need to create your own. The question link given by Vagrant seems to be answering about the third party calendars.

https://github.com/klazuka/Kal is the most fav.



来源:https://stackoverflow.com/questions/5385900/does-the-ios-sdk-give-access-to-the-calendar-picker-used-by-iphones-built-in-ca

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!