如何实现iphone / ipad开发应用中的聚光灯搜索

时间:2011-05-30 09:12:10

标签: iphone ios ipad search

任何人都可以让我了解在iphone / ipad开发应用程序中实现聚光灯搜索吗?

1 个答案:

答案 0 :(得分:1)

您应该将所有搜索项存储在数组中。当用户开始搜索(使用UISearchBar)时,请使用以下代理中的代码

- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
     //Find all the value matches your searchText
     //Display them in a tableView.
}
相关问题