您的位置:首页 > 移动开发 > IOS开发

iOS应用搜索

2016-07-19 00:00 537 查看
应用搜索有三个不同但相关的api。他们为使不同的应用程序用例设计搜索。 App Search has three APIs that are distinct but related. They're designed for enabling different use cases of App Search.

第一个是NSUserActivity

The first one is NSUserActivity. This is an extension of the Handoff API that we released in iOS 8.

第二个是CoreSpotlight

The second API is called CoreSpotlight.

第三个是web标记

Third API is web markup.

Handoff 切换

NSUserActivity was introduced in iOS 8 to support Handoff. Handoff is the amazing feature that allows you to start an activity on one device and pick up right where you left off on another. NSUserActivity is a lightweight way to capture application state which can be restored later.

切换是神奇的特性,它允许您启动一个活动在一台设备上,从你离开的地方。NSUserActivity捕获应用程序状态是一个轻量级方法后可以恢复。
http://www.cocoachina.com/ios/20150409/11515.html

Handoff:沟通iOS应用和网页

http://code.tutsplus.com/tutorials/an-introduction-to-handoff--cms-24349

Handoff

http://www.cocoachina.com/ios/20150819/13116.html

search api
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: