繁体   English   中英

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

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

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

        // 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在Mail等应用程序中发现的事件。我在iPhone设置->日历下打开了此选项。 但是,奇怪的是,即使Siri日历的发现功能已打开,Apple的iOS日历也不显示这些事件。 某些日历应用(如Fantastical)也不会显示,而其他应用(如Vantage日历)也不会显示。

怎么可能?

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

暂无
暂无

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

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