答案 0 :(得分:0)
func filterContentForSearchText(searchText: String, scope: String = "All") {
filteredObjects = objects.filter { object in
return object.title.lowercaseString.containsString(searchText.lowercaseString) || object.subtitle.lowercaseString.containsString(searchText.lowercaseString)
}
tableView.reloadData()
}
此功能搜索字幕!
快乐的编码!