摘要: 最近经常用到搜索类的布局,大体是这样的上面是一个navigationController,接下来一个searchBar,下面是tableViewsearchBar这个控件就用来搜索tableView上的数据[[UISearchDisplayControlleralloc]initWithSearchBar:searchBarcontentsController:self];UISearchDisplayController这个控件很强大,它初始化是基于searchBar的,里面有些效果很不错,apple都封装好了,并且可以很好的支持实时搜索,即我们只需要将搜索出来的数据重新赋给array(这个 阅读全文
posted @ 2013-07-31 10:27 天牛 阅读(254) 评论(0) 推荐(0)