/**
* 模糊查询
*/
NSString *filterString = textField.text;
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF contains [c] %@", filterString];
self.visableArray = [NSMutableArray arrayWithArray:[self.dataSourceArray filteredArrayUsingPredicate:predicate]];
[_visableTableView reloadData];
时间: 2025-01-16 02:49:38