问题描述
||
任何人都可以在为iPhone / ipad开发的应用程序中实现Spotlight搜索的想法吗?
解决方法
您应该将所有搜索项存储在一个数组中。当用户开始搜索(使用UISearchBar)时,在以下委托中进行编码
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
//Find all the value matches your searchText
//Display them in a tableView.
}