gpt4 book ai didi

iPhone 'Event Kit' - 如何为提取指定额外的搜索过滤器(超出开始/结束日期)?

转载 作者:可可西里 更新时间:2023-11-01 04:42:52 27 4
gpt4 key购买 nike

关于 iPhone“事件工具包”:

除了 doco 中提到的开始和结束日期的有限选项之外,我如何为获取日历项目指定额外的搜索过滤器 ( per doco here )? (例如,所有发生在星期一的事件,或标题与 xxx 匹配的事件)

或者,除了 predicateForEventsWithStartDate:endDate:calendars: 中提供的功能之外,是否没有此类功能? ,因此您需要引入所有事件,然后自己遍历它们?

最佳答案

文档对您的问题有明确的回答。请参阅 eventsMatchingPredicate: 方法的注释:

predicate The search predicate. Must be created with the predicateForEventsWithStartDate:endDate:calendars: method.

由于该方法不允许您提供除要搜索的日期和日历之外的任何其他条件,因此您可以选择这些条件。其他一切都必须通过遍历搜索结果来完成。

关于iPhone 'Event Kit' - 如何为提取指定额外的搜索过滤器(超出开始/结束日期)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5121882/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com