iOS 中的核心数据 Spotlight 集成
我正在开发一个ios(3.1.3)应用程序来管理联系人、任务、活动等。这些模型由核心数据管理,并且运行良好。现在我想让所有这些项目都可以在 iOS 的聚光灯搜索栏中搜索。
这可能吗?
如果是这样,如何编码?我找到了“Core Data Spotlight集成编程指南”,但它不适合iOS,而且我没有找到与我想要的相关的任何文档或教程。
有什么想法、建议吗?或完整解决方案! :D
提前致谢!
I'm developping an ios (3.1.3) application to manage contacts, tasks, activities, etc. These models are managed by core data and it works very well. Now I want to make all these items searchable in the spotlight search bar in iOS.
Is that possible?
And if so, how to code it? I found the "Core Data Spotlight Integration Programming Guide" but it's not suitable for iOS and I don't find any document or tutorial related to what I want.
Any ideas, suggestions? or full solution! :D
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果我没记错的话,跨越所有应用程序的全局搜索是 PalmOS 的一项核心功能,可以追溯到 PalmOS 2.0 版。然而即使在今天,苹果的 iOS Spotlight 搜索仍然只支持苹果提供的内置应用程序。
遗憾的是,苹果尚未向开发者开放这一功能——这将使 Spotlight 在 iPhone 和 iPad 上变得更加有用。
Global search spanning all apps was a core feature of PalmOS going way back to PalmOS version 2.0, if I recall correctly. Yet even today, Apple's iOS Spotlight Search still only supports the built in apps provided by Apple.
It is shameful that Apple hasn't opened this up to developers yet - it would make Spotlight so much more useful on the iPhone and iPad.
您现在可以使用 iOS9 搜索来完成此操作。
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-SW3
You can now do it with iOS9 Search.
https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-SW3
从 iOS 9 开始,这将成为可能。
Apple 刚刚在 WWDC 2015 上发布了 CoreSpotlight 框架,通过集成,可以在第三方应用程序等中搜索内容。
文档
This will be possible from iOS 9 onwards.
Apple just released a CoreSpotlight framework at WWDC 2015, and with integration its possible to search contents within third party apps and much more.
Documentation
目前您无法将您的应用程序与 iOS 中的 Spotlight 集成,没有 API 可以执行此操作。
您可以归档雷达并希望在 iOS 5 中使用新的 Spotlight API 吗?
You cannot integrate your application with Spotlight in iOS for now, there's no API to do it.
You can file a radar and wish an new Spotlight API in iOS 5?