Difference between revisions of "Spotlight"

From iPhone Development Wiki
Jump to: navigation, search
Line 13: Line 13:
 
</pre>
 
</pre>
 
If you are interested in creating your own search results check out [[SearchLoader]].
 
If you are interested in creating your own search results check out [[SearchLoader]].
 +
 +
=== Search Modes  ===
 +
{| class="wikitable"
 +
|-
 +
! Value
 +
! Meaning
 +
|-
 +
| 0
 +
| pull down?
 +
|-
 +
| 1
 +
| pull left?
 +
|-
 +
| 2
 +
| searching?
 +
|}

Revision as of 04:00, 30 November 2015

Many files in SBSearch*, SPUISearch*

How to open:

[[%c(SpringBoard) sharedApplication] _revealSpotlight];

This will open Spotlight from anywhere. If you are inside an application, it will close that application and go to the homepage in order to open Spotlight.

[(AXSpringBoardServer *)[%c(AXSpringBoardServer) server] revealSpotlight];

How to dismiss:

[[%c(SBSearchGesture) sharedInstance] resetAnimated:YES];

If you are interested in creating your own search results check out SearchLoader.

Search Modes

Value Meaning
0 pull down?
1 pull left?
2 searching?