【发布时间】:2015-08-22 17:43:41
【问题描述】:
我正在尝试使用 UISearchController 来过滤 PFObjects 数组。
var customers:[PFObjects] = [PFObjects]() //this is full of my objects.
var searchText:[PFObject] = [PFObjects]() //this has my searchTexts.
我的客户类中有一个名为“searchText”的列,其中包含我所有的客户姓名、地址和电话号码。我试图弄清楚如何填充搜索文本数组,然后过滤这两个数组。 我已经设置了所有的 tableview 委托和数据源,并初始化了 uisearchcontroller。
func updateSearchResultsForSearchController(searchController: UISearchController) {
//How do i search through the array of searchTexts and the customers array?
}
我可能无法通过我的 pfobjects 数组进行过滤...所以感谢您的帮助!
【问题讨论】:
标签: swift parse-platform uisearchdisplaycontroller