簡體   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