2015-05-14 136 views
1

有没有人知道EKEventStatus的含义?我搜查了苹果的文档,但我仍然无法理解其含义。我想获取日历数据库中状态未完成或撤消的事件。感到困惑EKEventStatus

https://developer.apple.com/library/prerelease/ios/documentation/EventKit/Reference/EKEventClassRef/index.html#//apple_ref/c/tdef/EKEventStatus

EKEventStatusNone 
The event has no status 

Available in iOS 4.0 and later 

EKEventStatusConfirmed 
The event is confirmed 

Available in iOS 4.0 and later 

EKEventStatusTentative 
The event is tentative 

Available in iOS 4.0 and later 

EKEventStatusCanceled 
The event is canceled 

Available in iOS 4.0 and later 
+0

有没有一种特定的方法可以返回一个'EKEventStatus'?你有一些代码可以证明你的工作不正常吗? – stevekohls

+0

我正在编写一个应用程序,它可以让用户知道他们的日历和提醒中有多少撤消事件。但是,我不知道我可以使用哪种方法来达到这个目的?我想知道什么是“EKEventStatusNone”,“EKEventStatusConfirmed”,“EKEventStatusTentative”,“EKEventStatusCanceled” –

+0

这会帮助你与实施日历和活动的基本知识:https://developer.apple.com/library/prerelease/ IOS /文件/数据管理/概念/ EventKitProgGuide /简介/ Introduction.html – stevekohls

回答

2

这些字段的含义对应于显示iCalendar VEVENT的STATUS属性,如在RFC 5545 section 3.8.1.11指定。

总之他们告诉你会议是否已被确认,取消等。取决于上下文。

+0

谢谢您的回答! –