标签:
/**
* 模糊查询
*/
NSString *filterString = textField.text;
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF contains [c] %@", filterString];
self.visableArray = [NSMutableArray arrayWithArray:[self.dataSourceArray filteredArrayUsingPredicate:predicate]];
[_visableTableView reloadData];
标签:
原文地址:http://www.cnblogs.com/lrr0618/p/5179182.html