<分区>
有两个问题,第一个是黄色消息(警告):
var parameters are deprecated and will be removed in Swift3"<BR> If I fix it, the next line "searchText = ...."
第二个带有红色消息(错误)
cannot assign to value: searchText is a let constant
代码如下:
func filterContentForSearchText(var searchText: String, scope: NSInteger) {
searchText = searchText.lowercaseString;
}