2

我目前正在阅读功能类似于此处描述的所有日历事件:https ://www.andrewcbancroft.com/2016/04/28/listing-calendar-events-with-event-kit-and-swift/

IE

        // Use an event store instance to create and properly configure an NSPredicate
        let eventsPredicate = eventStore.predicateForEventsWithStartDate(startDate, endDate: endDate, calendars: [calendar])

        // Use the configured NSPredicate to find and return events in the store that match
        self.events = eventStore.eventsMatchingPredicate(eventsPredicate).sort(){
            (e1: EKEvent, e2: EKEvent) -> Bool in
            return e1.startDate.compare(e2.startDate) == NSComparisonResult.OrderedAscending
        }

现在,在我运行 iOS 12.1.1 的 iPhone X 上,这给了我一个名为“以自然语言发现”的日历的各种事件。我知道这些应该是 Siri 在邮件等应用程序中发现的事件。我在 iPhone 设置 -> 日历下打开了这个选项。然而,奇怪的是苹果的 iOS 日历并没有显示这些事件,即使通过 Siri 找到的日历是打开的。某些日历应用程序(例如 Fantastical)也不会显示它们,而其他一些应用程序(例如 Vantage 日历)会显示它们。

这个怎么可能?

4

1 回答 1

0

这也发生在我身上。一位朋友给我发了一封电子邮件,提到他们的结婚纪念日。Siri 找到了它,并将它标记为我可以添加到我的日历中的东西。我最初并没有在“邮件”中发现这一点,Fantastical 或 Apple Calendar 也没有,但 Vantage 有。所以我认为 Vantage 正在显示 Siri 建议的项目,而它应该只显示已找到、然后接受并添加到日历中的项目。

于 2019-07-28T06:34:21.160 回答