iPhone“活动套件” - 如何为提取指定其他搜索过滤器(超出开始/结束日期)?
关于 iPhone“Event Kit”:
如何指定其他搜索过滤器(每个 doco )用于获取日历项目,超出了刚刚启动和启动的有限选项。 doco 中提到的结束日期? (例如,所有事件发生在星期一,或标题匹配 xxx)
或者是否除了 predicateForEventsWithStartDate:endDate:calendars: ,因此您需要引入所有事件然后自己迭代它们?
re iPhone 'Event Kit':
How can I specify additional search filters (per doco here) for a fetching calendar items, beyond the limited options of just start & end date mentioned in the doco? (e.g. all events occurring on Mondays, or with title matching xxx)
Or is it a given that there are no such capabilities beyond what is available in predicateForEventsWithStartDate:endDate:calendars: , hence you need to bring in all events and then iterate through them yourself?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该文档对您的问题有明确的答案。请参阅
eventsMatchingPredicate:
方法的注释:由于该方法不允许您提供除要搜索的日期和日历之外的任何其他条件,因此您可以选择这些条件。其他一切都必须通过迭代搜索结果来完成。
The documentation has a clear answer to your question. See the notes for the
eventsMatchingPredicate:
method:Since that method does not allow you to give any other criteria than the dates and the calendars to search in, those are your options. Everything else must be done by iterating over the search results.