标签: ios swift filter
我收到了代码的这部分错误:filteredSongs = allSongs.filter {song in return song.title!.lowercaseString.containsString(searchText.lowercaseString) }
filteredSongs = allSongs.filter {song in return song.title!.lowercaseString.containsString(searchText.lowercaseString) }
已经尝试将该类符合Equatable,如Cannot invoke 'filter' with an argument list of type '((_) -> _)'所述,但这对我来说不是正确的解决方案。