模糊使用函数错误

时间:2016-12-08 11:34:32

标签: swift swift3 ambiguous

我使用以下代码

@IBOutlet weak var hashtagableTextView: UITextView!

viewDidload方法中:

let hashtagableDelegate = HashtagableTextInputDelegate(textView: hashtagableTextView, userDelegate: self)

hashtagableDelegate.didStartTypingHashtag = { partialHashtag in
    let searchableString = partialHashtag.replacingOccurrences(of: "#", with: "")
    hashtagableDelegate.showSuggestedHashtags(hashtagDatabase.filter({ $0.lowercased().contains(searchableString.lowercased()) }))
}

hashtagableTextView.delegate = hashtagableDelegate

我收到错误

  

模糊地使用contains

我该如何解决?

0 个答案:

没有答案