简体   繁体   English

EKCalendar显示Apple日历中未显示的“以自然语言发现”事件

[英]EKCalendar showing events “Found in Natural Language” which are not in Apple Calendar

I am currently reading all calendar events with a function similar to what is described here: https://www.andrewcbancroft.com/2016/04/28/listing-calendar-events-with-event-kit-and-swift/ 我目前正在阅读具有类似于此处所述功能的所有日历事件: 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
        }

Now on my iPhone X running iOS 12.1.1 this gives me the various events of a calendar called 'Found in Natural Language'. 现在,在运行iOS 12.1.1的iPhone X上,这给了我称为“以自然语言存在”日历的各种事件。 I know that those are supposed to be the events, which Siri found in apps like Mail etc. I turned this option on under the iPhone Settings -> Calendar. 我知道这些事件应该是Siri在Mail等应用程序中发现的事件。我在iPhone设置->日历下打开了此选项。 However, the strange thing is that Apple's iOS calendar doesn't show these events, even though the found by Siri calendar is turned on. 但是,奇怪的是,即使Siri日历的发现功能已打开,Apple的iOS日历也不显示这些事件。 Some calendar apps like Fantastical don't show them either, and some other apps, like eg Vantage calendar show them. 某些日历应用(如Fantastical)也不会显示,而其他应用(如Vantage日历)也不会显示。

How can that be? 怎么可能?

This happened to me as well. 这也发生在我身上。 A friend had sent an email to me mentioning their Wedding Anniversary. 一位朋友给我发送了一封电子邮件,提到他们的结婚周年纪念日。 Siri had found it and had tagged it as being something I could add to my calendar. Siri找到了它并将其标记为可以添加到日历中的东西。 I hadn't originally spotted that in 'mail' and neither had Fantastical or Apple Calendar, but Vantage had. 我最初没有在“邮件”中发现它,也没有Fantastical或Apple Calendar,但Vantage拥有。 So I think Vantage is displaying items suggested by Siri whereas it should only be displaying items that have been found and then accepted and added to a calendar. 因此,我认为Vantage会显示Siri建议的项目,而应该只显示已找到然后接受并添加到日历的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM