I am trying to implement the content search in iphone using UISearchBar. When i am taking dataArray as a source of strings,I can easily search in that strings.But i want to give the list of installed applications for searching so that when I’ll search then that application will be displayed in the list just like spotlight search do.I cant understand how to give the path for searching the data outside the dataArray or how can i search the list of installed applications list in iphone?
Share
There are two ways you can do this-
a) Try custom URLs for apps and check if canOpenURL returns YES.
b) Detect the running processes and try to figure out the app name from there.
For details, have a look at http://amitay.us/ihasapp/index.php.
However, keep in mind that such practices are frowned upon by Apple and may lead to the rejection of your application.